# carthage-software/mago

Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.

Repository: https://github.com/carthage-software/mago
Canonical: https://ross.abutalabs.com/products/mago
Homepage: http://mago.carthage.software/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: code-analyzer, code-style, coding-standards, formatter, lexer, linter, parser, php, static-analysis, type-checker
Last push: 2026-08-24T22:26:02+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 48
- inputs: {"age_days": 677, "days_push": 9, "days_rel": 9, "gap_med": 1.0, "n_releases_24m": 199}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3409, forks 178 (observed 2026-08-28T04:08:03.229872+00:00)

## What it is
Mago is an extremely fast PHP toolchain written in Rust that provides linting, formatting, static analysis, and automated fixes through a unified CLI. It aims to bring Rust-ecosystem-style speed and developer experience to PHP projects.

## Use cases
- lint php codebases with customizable rules
- format php code automatically
- run static analysis to catch type errors in php
- auto-fix lint issues in php projects
- replace php tools like phpstan and php-cs-fixer with one fast tool
- parse and analyze php source code

## When to choose
- you maintain a php codebase and want fast linting, formatting, and static analysis in one tool
- you want rust-level performance for php code quality checks
- you want automated fixes for lint issues

## When to avoid
- you need php-specific tooling outside linting, formatting, and static analysis
- you rely on plugins or rules specific to existing php tools like phpstan extensions

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, formatter, parser, type-system, developer-tools
- domain: developer-tools, programming-languages, parsers, testing
- platform: cli, cross-platform, windows, rust
- tags: php, static-analysis, code-style, coding-standards, lexer, rust, linux, macos

## Member repositories
- carthage-software/mago (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.229872+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:32.398116+00:00, confidence not recorded.
  - readme: https://github.com/carthage-software/mago (fetched 2026-08-28T04:08:03.229872+00:00, sha c7abdfb74d7a)
  - homepage: http://mago.carthage.software/ (fetched 2026-08-29T09:32:31.734352+00:00, sha 7f35fd7e4473)
  - registry_crates: https://crates.io/api/v1/crates/mago (fetched 2026-08-29T09:32:31.744317+00:00, sha 6c446d1046ee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
