An extremely fast PHP toolchain written in Rust, providing linting, formatting, static analysis, and AST visualization.
- 1.61.0
- Published at
- 5d ago
- 3,566
- Stars
- 173,501
- Download
- Synced at
- 4d ago
Latest release
1.61.0Nov 21, 2026, 10:19 PMDownloads slow? Switch the source anytime above
README
Project Overview
Mago is a comprehensive PHP toolchain written in Rust that helps developers write better code. Inspired by the Rust ecosystem, it brings speed, reliability, and an exceptional developer experience to PHP projects of all sizes.
Key Features
- ⚡️ Extremely Fast: Built in Rust for maximum performance
- Lint: Identify issues with customizable rules
- Static Analysis: Perform deep analysis to catch potential type errors and bugs
- Automated Fixes: Apply fixes for many lint issues automatically
- Formatting: Automatically format code to follow best practices
- Semantic Checks: Ensure code correctness with robust semantic analysis
- AST Visualization: Explore code structure with AST parsing
Target Audience
- PHP developers
- Teams who want to improve code quality
- Developers interested in Rust-powered high-performance tools
Quick Start
- macOS/Linux install:
curl --proto '=https' --tlsv1.2 -sSf https://carthage.software/mago.sh | bash - Or install via Homebrew, Composer, or Cargo
- See the Getting Started Guide
- Run linting, formatting, or static analysis
Core Advantages
- Written in Rust for exceptional performance
- All-in-one toolchain with linting, formatting, and static analysis
- Inspired by tools like Clippy and OXC
- Open-source and free, community-driven
System Requirements
- OS: Cross-platform (macOS, Linux, Windows)
- Architectures: x86_64, arm64
- Additional Dependencies: None
Release history
Sort