[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73313":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},73313,"mago","carthage-software\u002Fmago","carthage-software","Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.","http:\u002F\u002Fmago.carthage.software\u002F",null,"Rust",3211,160,18,63,0,24,51,121,72,108.62,"Apache License 2.0",false,"main",true,[27,28,29,30,31,32,33,34,35,36],"code-analyzer","code-style","coding-standards","formatter","lexer","linter","parser","php","static-analysis","type-checker","2026-06-12 04:01:09","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fstatic\u002Fimg\u002Fbanner.svg\" alt=\"Mago Banner\" width=\"600\" \u002F>\n\u003C\u002Fp>\n\n\u003Cdiv align=\"center\">\n\n**An extremely fast PHP linter, formatter, and static analyzer, written in Rust.**\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n\n[![CI Status](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Factions\u002Fworkflows\u002Fci.yml)\n[![CD Status](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Factions\u002Fworkflows\u002Fcd.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Factions\u002Fworkflows\u002Fcd.yml)\n[![CodeQL](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Factions\u002Fworkflows\u002Fgithub-code-scanning\u002Fcodeql\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Factions\u002Fworkflows\u002Fgithub-code-scanning\u002Fcodeql)\n[![CodSpeed](https:\u002F\u002Fimg.shields.io\u002Fendpoint?url=https:\u002F\u002Fcodspeed.io\u002Fbadge.json)](https:\u002F\u002Fcodspeed.io\u002Fcarthage-software\u002Fmago?utm_source=badge)\n[![Crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fmago.svg)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fmago)\n[![Latest Stable Version for PHP](https:\u002F\u002Fposer.pugx.org\u002Fcarthage-software\u002Fmago\u002Fv)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fcarthage-software\u002Fmago)\n[![Total Composer Downloads](http:\u002F\u002Fposer.pugx.org\u002Fcarthage-software\u002Fmago\u002Fdownloads)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fcarthage-software\u002Fmago)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fl\u002Fmago.svg)](https:\u002F\u002Fgithub.com\u002Fcarthage-software\u002Fmago\u002Fblob\u002Fmain\u002FLICENSE-MIT)\n\n\u003C\u002Fdiv>\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 & 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:\u002F\u002Fcarthage.software\u002Fmago.sh | bash\n```\n\nTo install a specific version:\n\n```sh\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Fcarthage.software\u002Fmago.sh | bash -s -- --version=1.27.1\n```\n\nFor all other installation methods, including Homebrew, Composer, and Cargo, please refer to our official **[Installation Guide](https:\u002F\u002Fmago.carthage.software\u002Flatest\u002Fen\u002Fguide\u002Finstallation\u002F)**.\n\n## Getting Started\n\nTo get started with Mago and learn how to configure your project, please visit our **[Getting Started Guide](https:\u002F\u002Fmago.carthage.software\u002Flatest\u002Fen\u002Fguide\u002Fgetting-started\u002F)** 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 -->\n\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fwww.jetbrains.com\u002F\" title=\"JetBrains\">\u003Ckbd>\u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F60931315?u=f9b545e50cace9e9028f77eaf1e83104d18d4d48&v=4&s=240\" width=\"120\" height=\"120\" alt=\"JetBrains\" \u002F>\u003C\u002Fkbd>\u003C\u002Fa>\u003C\u002Fp>\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fjasonrm\" title=\"Jason R. McNeil\">\u003Ckbd>\u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39949?u=69c0e4fb08c439250978d41dbc3371d2f0609b98&v=4&s=160\" width=\"80\" height=\"80\" alt=\"Jason R. McNeil\" \u002F>\u003C\u002Fkbd>\u003C\u002Fa>\u003Ca href=\"https:\u002F\u002Fofcompute.rs\u002F\" title=\"Vincent Berset\">\u003Ckbd>\u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5173120?u=95efc76cd8fc804536dc6dd25781a95b650bf902&v=4&s=160\" width=\"80\" height=\"80\" alt=\"Vincent Berset\" \u002F>\u003C\u002Fkbd>\u003C\u002Fa>\u003C\u002Fp>\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fheysora.net\u002F\" title=\"HeySora\">\u003Ckbd>\u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F17962248?u=3cd88b4479a0dd018738612569d0954c81cdd25f&v=4&s=96\" width=\"48\" height=\"48\" alt=\"HeySora\" \u002F>\u003C\u002Fkbd>\u003C\u002Fa>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fkambo-1st\" title=\"Bohuslav Šimek\">\u003Ckbd>\u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6493048?u=5eddf1eb923810745d8bdd62496d245238833d07&v=4&s=96\" width=\"48\" height=\"48\" alt=\"Bohuslav Šimek\" \u002F>\u003C\u002Fkbd>\u003C\u002Fa>\u003Ca href=\"https:\u002F\u002Fwww.ticketswap.com\" title=\"TicketSwap\">\u003Ckbd>\u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5766233?v=4&s=96\" width=\"48\" height=\"48\" alt=\"TicketSwap\" \u002F>\u003C\u002Fkbd>\u003C\u002Fa>\u003C\u002Fp>\n\n[See all sponsors](SPONSORS.md)\n\u003C!-- END-SPONSORS -->\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](.\u002FCONTRIBUTING.md) to get started.\n- Join the discussion on [Discord](https:\u002F\u002Fdiscord.gg\u002Fmwyyjr27eu).\n\n## Inspiration & 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:\u002F\u002Fgithub.com\u002Frust-lang\u002Frust-clippy): For its comprehensive linting approach.\n- [OXC](https:\u002F\u002Fgithub.com\u002Foxc-project\u002Foxc\u002F): A major inspiration for building a high-performance toolchain in Rust.\n- [Hakana](https:\u002F\u002Fgithub.com\u002Fslackhq\u002Fhakana\u002F): For its deep static analysis capabilities.\n\n### Acknowledgements:\n\nWe deeply respect the foundational work of tools like [PHP-CS-Fixer](https:\u002F\u002Fgithub.com\u002FPHP-CS-Fixer\u002FPHP-CS-Fixer), [Psalm](https:\u002F\u002Fgithub.com\u002Fvimeo\u002Fpsalm), [PHPStan](https:\u002F\u002Fgithub.com\u002Fphpstan\u002Fphpstan), and [PHP_CodeSniffer](https:\u002F\u002Fgithub.com\u002FPHPCSStandards\u002FPHP_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](.\u002FLICENSE-MIT))\n- Apache License, Version 2.0 ([LICENSE-APACHE](.\u002FLICENSE-APACHE))\n","Mago 是一个旨在帮助 PHP 开发者编写更高质量代码的工具链。它集成了代码检查、格式化和静态分析等功能，利用 Rust 语言开发以确保极高的运行效率与稳定性。核心功能包括可定制规则的代码检查、深度静态分析以发现潜在类型错误和 bug、自动修复常见代码问题以及自动化代码格式调整。Mago 适用于需要提高代码质量和维护性的各种规模的 PHP 项目中，无论是个人开发者还是企业级应用都能从中受益。",2,"2026-06-11 03:44:59","high_star"]