macOS
brew install magolocal Homebrew formula metadata
安装
brew install magolocal Homebrew formula metadata
nix profile install nixpkgs#magonixpkgs package indexes · pkgs/by-name/ma/mago/package.nix · 来源: api.github.com
winget install --id CarthageSoftware.Mago -eWindows Package Manager source index · CarthageSoftware.Mago · 来源: cdn.winget.microsoft.com
概览
Toolchain for PHP to help developers write better code
历史
Mago is a Rust-written PHP toolchain that combines static analysis, linting, formatting, and guard-style checks in one binary. It targets PHP projects that want faster local and CI feedback without installing a PHP runtime for the tool itself.
The public GitHub repository was created in October 2024. The documentation brands Mago as an oxidized PHP toolchain and describes three core tools in one binary: analyzer, linter, and formatter.
By 2025 the project had a long beta release train toward 1.0, and by mid-2026 the documentation showed a latest 1.42.0 version. The docs also show configuration discovery, schema publishing for editors, project version pinning, self-update behavior, and WebAssembly playground support.
Mago's adoption is still young, but its packaging story is already broad for a PHP developer tool. Official docs list installation through the Carthage shell installer, Composer, Homebrew, Cargo, and Docker, while the supplied Homebrew input also lists Nix and winget packages.
The project has several thousand GitHub stars and more than a hundred forks, which is notable for a relatively new PHP toolchain and reflects interest in Rust-based replacements or complements for PHPStan, Psalm, PHP-CS-Fixer, and formatters.
The standard workflow is to install Mago, run `mago init` in a PHP project, and then run `mago analyze`, `mago lint`, or `mago fmt`. The official docs say initialization detects project layout and writes `mago.toml`.
Mago discovers configuration from the workspace, `$XDG_CONFIG_HOME`, `~/.config`, and the home directory, looking for `mago` and `mago.dist` files in TOML, YAML, YML, or JSON formats. It also publishes JSON schemas so editors and CI can validate configuration.
Mago is package-nerd significant because it compresses several familiar PHP QA tools into one Rust binary. That changes packaging ergonomics: package managers can offer static analysis, linting, formatting, shell completions, schemas, and update workflows as a single install.
Its version-pinning and schema model are especially relevant to maintainers because code-formatting and lint behavior must be reproducible across local machines, CI, and editor integrations.
安全态势
没有找到 mago 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
mago.tomlmago.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mago | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/carthage-software/mago
安装元数据
| 软件包键 | brew:mago |
|---|---|
| 版本 | 1.43.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mago |
| 主页 | https://github.com/carthage-software/mago |
| 仓库 | https://github.com/carthage-software/mago |
| 上游文档 | https://mago.carthage.software/ |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/carthage-software/mago/releases/download/1.43.0/source-code.tar.gz |
| 最后更新 | 2026-07-05T16:20:06Z |
| Pulse | updated |
| 构建依赖 | pkgconf, rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mago |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mago
nix profile install nixpkgs#magoCarthageSoftware.Mago
winget install --id CarthageSoftware.Mago -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.