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:
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.
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).
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.
User-friendly AI assistant supporting local models, API integration, knowledge bases, web search, and agent creation with cross-platform desktop and server deployment
High-speed file transfer tool aggregating Wi-Fi and USB channels to maximize bandwidth between Android and PC.
Custom Go-based API server for RustDesk with Web Admin, Web Client, OIDC/LDAP auth, and detailed audit logs.
Open-source interactive laboratory platform for DevOps learning, running locally with Docker/Kubernetes for hands-on practice with Linux, containers, and infrastructure tools
Ultra-lightweight (<100KB) native C implementation of Flappy Bird for Android, running on OpenGL ES.
Android's most powerful AI agent with Ubuntu 24, 40+ tools, voice control, intelligent memory, MCP plugins, and deep system integration