# mago を Homebrew, Nix, winget でインストール

mago のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:mago
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install mago
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mago
```

  証拠: nixpkgs package indexes: pkgs/by-name/ma/mago/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id CarthageSoftware.Mago -e
```

  証拠: Windows Package Manager source index: CarthageSoftware.Mago from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:mago
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/mago>
- **バージョン:** 1.43.0
- **ソース概要:** Toolchain for PHP to help developers write better code
- **ホームページ:** <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
- **生成日時:** 2026-07-08T18:08:21+00:00

## 実行可能ファイル

- mago (cli)
- mago (エイリアス)

## ビルド依存関係

- pkgconf
- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 1.43.0
- マネージャ更新日: 2026-07-05
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/carthage-software/mago
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://github.com/carthage-software/mago>
- <https://github.com/carthage-software/mago/releases>
- <https://mago.carthage.software/latest/en/>
- <https://mago.carthage.software/latest/en/guide/configuration/>
- source_facts.package-manager
- source_facts.repo


## セキュリティノート

mago に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## 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

- Unix: mago.toml
- Windows: mago.toml
## ソースデータベース詳細

- **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:** stable

## 他のパッケージマネージャ記録

- Nix - mago: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mago/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - CarthageSoftware.Mago: normalized package name match | Windows Package Manager source index: CarthageSoftware.Mago from https://cdn.winget.microsoft.com/cache/source.msix


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [pkgconf](https://www.automicvault.com/ja/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/ja/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [psalm](https://www.automicvault.com/ja/pkg/brew/psalm/) - Shares av.db curated category or tags: cli, developer-tools, php, static-analysis.
- [composer](https://www.automicvault.com/ja/pkg/brew/composer/) - Shares av.db curated category or tags: cli, developer-tools, php.
- [ktlint](https://www.automicvault.com/ja/pkg/brew/ktlint/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter, static-analysis.
- [phive](https://www.automicvault.com/ja/pkg/brew/phive/) - Shares av.db curated category or tags: cli, developer-tools, php.
- [pickle](https://www.automicvault.com/ja/pkg/brew/pickle/) - Shares av.db curated category or tags: cli, developer-tools, php.
- [pie](https://www.automicvault.com/ja/pkg/brew/pie/) - Shares av.db curated category or tags: cli, developer-tools, php.
- [protolint](https://www.automicvault.com/ja/pkg/brew/protolint/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter, static-analysis.
- [biome](https://www.automicvault.com/ja/pkg/brew/biome/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter.
- [dscanner](https://www.automicvault.com/ja/pkg/brew/dscanner/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, developer, developer-tools.
- [errcheck](https://www.automicvault.com/ja/pkg/brew/errcheck/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/mago.yml](https://github.com/automic-vault/db/blob/main/combined/mago.yml)


## ソース

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