Mago Download

High-performance Rust-based PHP toolchain featuring a linter, formatter, and static analyzer for modern PHP development.

⭐ 2,009 stars on GitHub
Latest Release: 1.0.0-rc.12

About Software

Mago is a modern, high-performance toolchain for PHP development, built using Rust to deliver exceptional speed and reliability. It combines the functionality of a linter, a code formatter, and a static analyzer into a single, unified tool. Inspired by the Rust ecosystem's tooling (like Clippy and rustfmt), Mago aims to provide PHP developers with a superior developer experience, offering instantaneous feedback and robust code analysis capabilities.

The tool supports customizable rules for linting and formatting, ensuring codebases remain clean, consistent, and bug-free. Its static analysis engine performs deep checks to identify type mismatches and semantic errors that might otherwise go unnoticed. With features like automated fixes and AST visualization, Mago serves as a comprehensive companion for modern PHP projects, helping developers write better code faster.

Use Cases:

  • Lint PHP code to identify syntax errors and potential issues
  • Format PHP code automatically to adhere to coding standards
  • Perform deep static analysis to catch type errors and bugs
  • Analyze code structure using Abstract Syntax Tree (AST) visualization
  • Improve PHP development workflow with a high-performance Rust-based toolchain

Downloads

1.0.0-rc.12 December 10, 2025
mago-1.0.0-rc.12-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.12-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.11 December 07, 2025
mago-1.0.0-rc.11-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.11-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.10 December 04, 2025
mago-1.0.0-rc.10-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.10-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.9 December 03, 2025
mago-1.0.0-rc.9-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.9-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.8 December 03, 2025
mago-1.0.0-rc.8-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.8-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.7 December 02, 2025
mago-1.0.0-rc.7-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.7-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.6 November 26, 2025
mago-1.0.0-rc.6-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.6-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.5 November 24, 2025
mago-1.0.0-rc.5-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.5-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.4 November 23, 2025
mago-1.0.0-rc.4-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.4-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.3 November 15, 2025
mago-1.0.0-rc.3-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.3-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.2 November 13, 2025
mago-1.0.0-rc.2-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.2-x86_64-unknown-linux-gnu.debdeb
1.0.0-rc.1 November 12, 2025
mago-1.0.0-rc.1-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-rc.1-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.34 October 19, 2025
mago-1.0.0-beta.34-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.34-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.33 October 18, 2025
mago-1.0.0-beta.33-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.33-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.32 October 16, 2025
mago-1.0.0-beta.32-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.32-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.31 October 15, 2025
mago-1.0.0-beta.31-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.31-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.30 October 15, 2025
mago-1.0.0-beta.30-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.30-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.28 October 11, 2025
mago-1.0.0-beta.28-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.28-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.27 October 07, 2025
mago-1.0.0-beta.27-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.27-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.26 October 03, 2025
mago-1.0.0-beta.26-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.26-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.25 September 30, 2025
mago-1.0.0-beta.25-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.25-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.24 September 23, 2025
mago-1.0.0-beta.24-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.24-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.23 September 23, 2025
mago-1.0.0-beta.23-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.23-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.22 September 23, 2025
mago-1.0.0-beta.22-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.22-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.21 September 23, 2025
mago-1.0.0-beta.21-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.21-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.20 September 22, 2025
mago-1.0.0-beta.20-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.20-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.19 September 22, 2025
mago-1.0.0-beta.19-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.19-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.18 September 21, 2025
mago-1.0.0-beta.18-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.18-x86_64-unknown-linux-gnu.debdeb
1.0.0-beta.17 September 19, 2025
mago-1.0.0-beta.17-aarch64-unknown-linux-gnu.debdeb
mago-1.0.0-beta.17-x86_64-unknown-linux-gnu.debdeb

Package Info

Last Updated
Dec 10, 2025
Latest Version
1.0.0-rc.12
License
Apache-2.0
Total Versions
29

README

An extremely fast PHP linter, formatter, and static analyzer, written in Rust.

CI Status (https://github.com/carthage-software/mago/actions/workflows/ci.yml/badge.svg) CD Status (https://github.com/carthage-software/mago/actions/workflows/cd.yml/badge.svg) Crates.io (https://img.shields.io/crates/v/mago.svg) Latest Stable Version for PHP (https://poser.pugx.org/carthage-software/mago/v) Latest Unstable Version for PHP (https://poser.pugx.org/carthage-software/mago/v/unstable) Total Composer Downloads (http://poser.pugx.org/carthage-software/mago/downloads) License (https://img.shields.io/crates/l/mago.svg)

Mago is a comprehensive toolchain for PHP that helps developers write better code. Inspired by the Rust ecosystem, Mago brings speed, reliability, and an exceptional developer experience to PHP projects of all sizes.

Table of Contents

  • Installation
  • Getting Started
  • Features
  • Our Sponsors
  • Contributing
  • Inspiration & Acknowledgements
  • License

Installation

The most common way to install Mago on macOS and Linux is by using our shell script:

curl --proto '=https' --tlsv1.2 -sSfO https://carthage.software/mago.sh && bash mago.sh

To install a specific version:

curl --proto '=https' --tlsv1.2 -sSfO https://carthage.software/mago.sh && bash mago.sh --version=1.0.0-beta.34

For all other installation methods, including Homebrew, Composer, and Cargo, please refer to our official Installation Guide (https://mago.carthage.software/guide/installation).

Getting Started

To get started with Mago and learn how to configure your project, please visit our Getting Started Guide (https://mago.carthage.software/guide/getting-started) in the official documentation.

Features

  • ⚡️ Extremely Fast: Built in Rust for maximum performance.
  • 🔍 Lint: Identify issues in your codebase with customizable rules.
  • 🔬 Static Analysis: Perform deep analysis of your codebase to catch potential type errors and bugs.
  • 🛠️ Automated Fixes: Apply fixes for many lint issues automatically.
  • 📜 Formatting: Automatically format your code to adhere to best practices and style guides.
  • 🧠 Semantic Checks: Ensure code correctness with robust semantic analysis.
  • 🌳 AST Visualization: Explore your code’s structure with Abstract Syntax Tree (AST) parsing.
See full README on repository.