# Install phpstan with Homebrew, Nix

PHP Static Analysis Tool. Version 2.2.5 via Homebrew; verified 2026-07-05.

## Install

```sh
sudo av install brew:phpstan
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install phpstan
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#phpstan
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ph/phpstan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:phpstan
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/phpstan>
- **Version:** 2.2.5
- **Source summary:** PHP Static Analysis Tool
- **Homepage:** <https://phpstan.org/>
- **Repository:** <https://github.com/phpstan/phpstan>
- **Upstream docs:** <https://phpstan.org/user-guide>
- **License:** MIT
- **Source archive:** <https://github.com/phpstan/phpstan/releases/download/2.2.5/phpstan.phar>
- **Last updated:** 2026-07-05T07:17:59Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- phpstan (cli)
- phpstan (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.2.5
- Package-manager updated: 2026-07-05
- Local data: ok
- Upstream repository: https://github.com/phpstan/phpstan
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for phpstan. Nucleus package metadata is still published here so future coverage has a stable package URL.



## 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: ./phpstan.neon, ./phpstan.neon.dist, ./phpstan.dist.neon, ./phpstan-baseline.neon
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** phpstan
- **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

## Other Package-Manager Records

- Nix - phpstan: normalized package name match | nixpkgs package indexes: pkgs/by-name/ph/phpstan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [psalm](https://www.automicvault.com/pkg/brew/psalm/) - Shares av.db curated category or tags: cli, developer-tools, php, static-analysis, type-checking.
- [checkstyle](https://www.automicvault.com/pkg/brew/checkstyle/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [credo](https://www.automicvault.com/pkg/brew/credo/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [datadog-static-analyzer](https://www.automicvault.com/pkg/brew/datadog-static-analyzer/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [detekt](https://www.automicvault.com/pkg/brew/detekt/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [eslint](https://www.automicvault.com/pkg/brew/eslint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [globstar](https://www.automicvault.com/pkg/brew/globstar/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [go-critic](https://www.automicvault.com/pkg/brew/go-critic/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.

## Combined YAML source

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


## Sources

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