Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, winget 安装 mago

查看 mago 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mago

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#mago

nixpkgs package indexes · pkgs/by-name/ma/mago/package.nix · 来源: api.github.com

Windows

Windows Package Manager已验证 · 92%
winget install --id CarthageSoftware.Mago -e

Windows Package Manager source index · CarthageSoftware.Mago · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Toolchain for PHP to help developers write better code

命令和别名

  • mago

历史

项目历史与用法

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.

时间线

  • 2024: Public GitHub repository created.
  • 2025: 1.0.0 beta releases published.
  • 2026: Documentation shows the 1.42.0 stable line.
  • 2026: Benchmarks and playground are promoted in official docs.

Related projects

  • PHPStan, Psalm, Phan, PHP-CS-Fixer, and Pretty PHP are adjacent PHP analysis, linting, and formatting tools referenced or benchmarked against in Mago's documentation.
  • Composer, Homebrew, Cargo, Docker, Nix, and winget are relevant distribution channels for the toolchain.

安全态势

尚未找到受保护工具覆盖

没有找到 mago 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
mago.toml
Windows
mago.toml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
magocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.43.0
管理器更新时间2026-07-05
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
构建依赖pkgconf, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemago
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

mago

nix profile install nixpkgs#mago
  • normalized package name match
  • 匹配方式:Mago
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ma/mago/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
winget95%

CarthageSoftware.Mago

winget install --id CarthageSoftware.Mago -e
  • normalized package name match
  • 匹配方式:Mago
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: CarthageSoftware.Mago from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment