{"id":22911902,"url":"https://github.com/carthage-software/mago","last_synced_at":"2026-04-18T08:12:31.955Z","repository":{"id":259765771,"uuid":"878733839","full_name":"carthage-software/mago","owner":"carthage-software","description":"Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.","archived":false,"fork":false,"pushed_at":"2026-04-15T18:47:53.000Z","size":59302,"stargazers_count":3010,"open_issues_count":101,"forks_count":145,"subscribers_count":17,"default_branch":"main","last_synced_at":"2026-04-15T20:32:37.190Z","etag":null,"topics":["code-analyzer","code-style","coding-standards","formatter","lexer","linter","parser","php","static-analysis","type-checker"],"latest_commit_sha":null,"homepage":"http://mago.carthage.software/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carthage-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"azjezz"}},"created_at":"2024-10-26T01:11:18.000Z","updated_at":"2026-04-15T18:47:57.000Z","dependencies_parsed_at":"2026-02-07T03:05:55.920Z","dependency_job_id":null,"html_url":"https://github.com/carthage-software/mago","commit_stats":null,"previous_names":["carthage-software/fennec","carthage-software/mago"],"tags_count":171,"template":false,"template_full_name":null,"purl":"pkg:github/carthage-software/mago","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carthage-software%2Fmago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carthage-software%2Fmago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carthage-software%2Fmago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carthage-software%2Fmago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carthage-software","download_url":"https://codeload.github.com/carthage-software/mago/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carthage-software%2Fmago/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31959942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-analyzer","code-style","coding-standards","formatter","lexer","linter","parser","php","static-analysis","type-checker"],"created_at":"2024-12-14T04:19:00.880Z","updated_at":"2026-04-18T08:12:31.950Z","avatar_url":"https://github.com/carthage-software.png","language":"Rust","funding_links":["https://github.com/sponsors/azjezz"],"categories":["Table of Contents","Rust"],"sub_categories":["Static Analysis"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/public/assets/banner.svg\" alt=\"Mago Banner\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n**An extremely fast PHP linter, formatter, and static analyzer, written in Rust.**\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![CI Status](https://github.com/carthage-software/mago/actions/workflows/ci.yml/badge.svg)](https://github.com/carthage-software/mago/actions/workflows/ci.yml)\n[![CD Status](https://github.com/carthage-software/mago/actions/workflows/cd.yml/badge.svg)](https://github.com/carthage-software/mago/actions/workflows/cd.yml)\n[![CodeQL](https://github.com/carthage-software/mago/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/carthage-software/mago/actions/workflows/github-code-scanning/codeql)\n[![Crates.io](https://img.shields.io/crates/v/mago.svg)](https://crates.io/crates/mago)\n[![Latest Stable Version for PHP](https://poser.pugx.org/carthage-software/mago/v)](https://packagist.org/packages/carthage-software/mago)\n[![Total Composer Downloads](http://poser.pugx.org/carthage-software/mago/downloads)](https://packagist.org/packages/carthage-software/mago)\n[![License](https://img.shields.io/crates/l/mago.svg)](https://github.com/carthage-software/mago/blob/main/LICENSE-MIT)\n\n\u003c/div\u003e\n\n**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.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n- [Features](#features)\n- [Our Sponsors](#our-sponsors)\n- [Contributing](#contributing)\n- [Inspiration \u0026 Acknowledgements](#inspiration--acknowledgements)\n- [License](#license)\n\n## Installation\n\nThe most common way to install Mago on macOS and Linux is by using our shell script:\n\n```sh\ncurl --proto '=https' --tlsv1.2 -sSf https://carthage.software/mago.sh | bash\n```\n\nTo install a specific version:\n\n```sh\ncurl --proto '=https' --tlsv1.2 -sSf https://carthage.software/mago.sh | bash -s -- --version=1.22.0\n```\n\nFor all other installation methods, including Homebrew, Composer, and Cargo, please refer to our official **[Installation Guide](https://mago.carthage.software/guide/installation)**.\n\n## Getting Started\n\nTo 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.\n\n## Features\n\n- ⚡️ Extremely Fast: Built in Rust for maximum performance.\n- 🔍 Lint: Identify issues in your codebase with customizable rules.\n- 🔬 Static Analysis: Perform deep analysis of your codebase to catch potential type errors and bugs.\n- 🛠️ Automated Fixes: Apply fixes for many lint issues automatically.\n- 📜 Formatting: Automatically format your code to adhere to best practices and style guides.\n- 🧠 Semantic Checks: Ensure code correctness with robust semantic analysis.\n- 🌳 AST Visualization: Explore your code’s structure with Abstract Syntax Tree (AST) parsing.\n\n## Our Sponsors\n\n\u003c!-- START-SPONSORS --\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://www.jetbrains.com/\" title=\"JetBrains\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/60931315?u=f9b545e50cace9e9028f77eaf1e83104d18d4d48\u0026v=4\u0026s=240\" width=\"120\" height=\"120\" alt=\"JetBrains\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003ca href=\"https://github.com/zip-fa\" title=\"zip-fa\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/61551308?v=4\u0026s=240\" width=\"120\" height=\"120\" alt=\"zip-fa\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003c/p\u003e\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/jasonrm\" title=\"Jason R. McNeil\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/39949?u=69c0e4fb08c439250978d41dbc3371d2f0609b98\u0026v=4\u0026s=160\" width=\"80\" height=\"80\" alt=\"Jason R. McNeil\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003ca href=\"https://ofcompute.rs/\" title=\"Vincent Berset\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/5173120?u=95efc76cd8fc804536dc6dd25781a95b650bf902\u0026v=4\u0026s=160\" width=\"80\" height=\"80\" alt=\"Vincent Berset\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003c/p\u003e\u003cp align=\"center\"\u003e\u003ca href=\"https://heysora.net/\" title=\"HeySora\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/17962248?u=3cd88b4479a0dd018738612569d0954c81cdd25f\u0026v=4\u0026s=96\" width=\"48\" height=\"48\" alt=\"HeySora\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003ca href=\"https://github.com/kambo-1st\" title=\"Bohuslav Šimek\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/6493048?u=5eddf1eb923810745d8bdd62496d245238833d07\u0026v=4\u0026s=96\" width=\"48\" height=\"48\" alt=\"Bohuslav Šimek\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003ca href=\"https://www.ticketswap.com\" title=\"TicketSwap\"\u003e\u003ckbd\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/5766233?v=4\u0026s=96\" width=\"48\" height=\"48\" alt=\"TicketSwap\" /\u003e\u003c/kbd\u003e\u003c/a\u003e\u003c/p\u003e\n\n[See all sponsors](SPONSORS.md)\n\u003c!-- END-SPONSORS --\u003e\n\n## Contributing\n\nMago is a community-driven project, and we welcome contributions! Whether you're reporting bugs, suggesting features, writing documentation, or submitting code, your help is valued.\n\n- See our [Contributing Guide](./CONTRIBUTING.md) to get started.\n- Join the discussion on [Discord](https://discord.gg/mwyyjr27eu).\n\n## Inspiration \u0026 Acknowledgements\n\nMago stands on the shoulders of giants. Our design and functionality are heavily inspired by pioneering tools in both the Rust and PHP ecosystems.\n\n### Inspirations:\n\n- [Clippy](https://github.com/rust-lang/rust-clippy): For its comprehensive linting approach.\n- [OXC](https://github.com/oxc-project/oxc/): A major inspiration for building a high-performance toolchain in Rust.\n- [Hakana](https://github.com/slackhq/hakana/): For its deep static analysis capabilities.\n\n### Acknowledgements:\n\nWe deeply respect the foundational work of tools like [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer), [Psalm](https://github.com/vimeo/psalm), [PHPStan](https://github.com/phpstan/phpstan), and [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer). While Mago aims to offer a unified and faster alternative, these tools paved the way for modern PHP development.\n\n## License\n\nMago is dual-licensed under your choice of the following:\n\n- MIT License ([LICENSE-MIT](./LICENSE-MIT))\n- Apache License, Version 2.0 ([LICENSE-APACHE](./LICENSE-APACHE))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarthage-software%2Fmago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarthage-software%2Fmago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarthage-software%2Fmago/lists"}