百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

phpstan-src

> 编程语言
开源

PHPStan 的源代码。这是开发发生的地方。请查看 https://GitHub.com/phpstan/phpstan 以查看发行仓库。

397 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

PHPStan 的源代码。这是开发发生的地方。请查看 https://GitHub.com/phpstan/phpstan 以查看发行仓库。

PHPStan - PHP Static Analysis Tool


This repository (phpstan/phpstan-src) is for PHPStan's development only. Head to phpstan/phpstan for the main README, or to create an issue.

Contributing

Any contributions are welcome.

Installation

bash
composer install

If you are using macOS and are using an older version of patch, you may have problems with patch application failure during composer install. Try using brew install gpatch to install a newer and supported patch version.

Building

PHPStan's source code is developed on PHP 8.2. For distribution in phpstan/phpstan package and as a PHAR file, the source code is transformed to run on PHP 7.2 and higher.

Initially you need to run composer install in case you aren't working in a directory which was built before.

Afterward you can run the whole build including linting and coding standards:

bash
make

Running development version

You can also choose to run only part of the build. To analyse PHPStan by PHPStan itself, run:

bash
make phpstan

Fixing code style

To detect code style issues, run:

bash
make cs

And then to fix code style, run:

bash
make cs-fix

Running tests

Run:

bash
make tests

Debugging

  1. Make sure Xdebug is installed and configured.
  2. Add --xdebug option when running PHPStan. Without it PHPStan turns the debugger off at runtime.
  3. If you're not debugging the result cache, also add the --debug option.

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

Issues· 214 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言