pkg.soopen package index

brew / 排名 1868

使用 Homebrew, Nix 安装 phpstan

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install phpstan

local Homebrew formula metadata

Linux

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

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

概览

软件包摘要

PHP Static Analysis Tool

命令和别名

  • phpstan

历史

项目历史与用法

PHPStan is a static analyzer for PHP that infers types and reports potential defects without running the analyzed application.

项目历史

Ondřej Mirtes first released PHPStan in 2016 as a static analyzer focused on finding PHP bugs without executing the program. A dedicated documentation site followed in 2020, version 1.0 marked six years of development in 2021, and version 2.0 expanded the rule-level model in 2024.

采用历史

PHPStan's graduated rule levels let teams introduce analysis incrementally, while baselines let established codebases enforce stricter checks on new work without first repairing every historical finding. Composer installation and a library of framework-specific extensions fit normal PHP project workflows.

使用方式

Projects commonly install PHPStan as a Composer development dependency, run `analyse` against source and test directories, and choose a rule level from 0 through 10. NEON configuration controls paths and behavior, while a generated baseline can suppress existing findings during gradual adoption.

为什么软件包爱好者会关心

PHPStan helped make whole-program static analysis a routine PHP development dependency. Package-oriented users care about its self-contained PHAR, Composer distribution, NEON configuration, extension ecosystem, and explicit compatibility between analyzer, PHP language, and framework versions.

时间线

  • 2016: First public release.
  • 2020: Dedicated PHPStan documentation website launched.
  • 2021: PHPStan 1.0 released after six years of development.
  • 2024: PHPStan 2.0 introduced level 10 and further type-system improvements.

Related projects

  • Composer is the recommended installation path and enables PHPStan extensions.
  • Framework and library extensions supply more precise type information and rules.
  • PHPStan Pro provides a web interface for browsing findings, including baselined errors.

安全态势

尚未找到受保护工具覆盖

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

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

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

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
./phpstan.neon./phpstan.neon.dist./phpstan.dist.neon./phpstan-baseline.neon

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-11-04
管理器版本2.3.4
管理器更新时间2026-11-03
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/phpstan/phpstan

安装元数据

软件包元数据

软件包键brew:phpstan
版本2.3.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/phpstan
主页https://phpstan.org/
仓库https://github.com/phpstan/phpstan
上游文档https://phpstan.org/
许可证MIT
源码归档https://github.com/phpstan/phpstan/releases/download/2.3.5/phpstan.phar
最后更新2026-11-03T14:54:37Z
Pulseupdated
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

phpstan

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

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • 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
  • pkg.so package database
  • pkgdb category and tag curation