# Install phpstan with Homebrew, Nix

PHP Static Analysis Tool. Version 2.2.7 via Homebrew; verified 2026-07-29. Also installable with nix: nix profile install nixpkgs#phpstan.

## 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
- **Version:** 2.2.7
- **Source summary:** PHP Static Analysis Tool
- **Homepage:** <https://phpstan.org/>
- **Repository:** <https://github.com/phpstan/phpstan>
- **Last updated:** 2026-07-29T19:57:02Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- phpstan (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.2.7

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


## Combined YAML source

View the package source record on GitHub. [combined/phpstan.yml](https://github.com/mxcl/pkgdb/blob/main/combined/phpstan.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
