← Winnitude! Search  ·  Reader Mode (683 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 119 LINKS

GitHub - phpstan/phpstan: PHP Static Analysis Tool - discover bugs in your code without running it!

Repository navigation

phpstan
Public

About

PHP Static Analysis Tool - discover bugs in your code without running it!

phpstan.org/

Topics

php php7 phpstan static-analysis static-analyzer static-code-analysis testing

Resources

Readme MIT license

Code of conduct

Code of conduct

Security policy

Security policy Activity Custom properties

Stars

14.2k stars

Watchers

154 watching

Forks

970 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


16,098 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.agents .agents    
.amp .amp    
.claude/ skills .claude/ skills    
.github .github    
.idea .idea    
conf conf    
docker docker    
e2e e2e    
identifier-extractor identifier-extractor    
playground-api playground-api    
playground-runner playground-runner    
turbo-ext turbo-ext    
website website    
.editorconfig .editorconfig    
.gitattributes .gitattributes    
.gitignore .gitignore    
.phar-checksum .phar-checksum    
.typos.toml .typos.toml    
BACKERS.md BACKERS.md    
CHANGELOG.md CHANGELOG.md    
CLAUDE.md CLAUDE.md    
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md    
LICENSE LICENSE    
README.md README.md    
UPGRADING.md UPGRADING.md    
bootstrap.php bootstrap.php    
composer.json composer.json    
phpstan phpstan    
phpstan.phar phpstan.phar    
phpstan.phar.asc phpstan.phar.asc    

Repository files navigation

PHPStan - PHP Static Analysis Tool


PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line.

Read more about PHPStan »

Try out PHPStan on the on-line playground! »

Sponsors

Want your logo here? Learn more »

Gold Sponsors

   



Silver Sponsors



Bronze Sponsors

   
   
   
   
   
   
   
   

You can sponsor my open-source work on PHPStan through GitHub Sponsors and also directly.

One-time donations through Revolut.me are also accepted. To request an invoice, contact me through e-mail.

Documentation

All the documentation lives on the phpstan.org website :

PHPStan Pro

PHPStan Pro is a paid add-on on top of open-source PHPStan Static Analysis Tool with these premium features:

  • Web UI for browsing found errors, you can click and open your editor of choice on the offending line.
  • Continuous analysis (watch mode): scans changed files in the background, refreshes the UI automatically.

Try it on PHPStan 0.12.45 or later by running it with the --pro option. You can create an account either by following the on-screen instructions, or by visiting account.phpstan.com .

After 30-day free trial period it costs 7 EUR for individuals monthly, 70 EUR for teams (up to 25 members). By paying for PHPStan Pro, you're supporting the development of open-source PHPStan.

You can read more about it on PHPStan's website .

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.

Contributing

Any contributions are welcome. PHPStan's source code open to pull requests lives at phpstan/phpstan-src .

About

PHP Static Analysis Tool - discover bugs in your code without running it!

phpstan.org/

Topics

php php7 phpstan static-analysis static-analyzer static-code-analysis testing

Resources

Readme MIT license

Code of conduct

Code of conduct

Security policy

Security policy Activity Custom properties

Stars

14.2k stars

Watchers

154 watching

Forks

970 forks Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages