PHPStan logo

PHPStan

PHP Static Analysis Tool - discover bugs in your code without running it!
19
7
+ 1
0

What is PHPStan?

It 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.
PHPStan is a tool in the Code Review category of a tech stack.
PHPStan is an open source tool with 8.2K GitHub stars and 605 GitHub forks. Here’s a link to PHPStan's open source repository on GitHub

Who uses PHPStan?

Companies
12 companies reportedly use PHPStan in their tech stacks, including Blackfire.io, InterNations, and Clippings.

Developers
6 developers on StackShare have stated that they use PHPStan.

PHPStan Integrations

PHP, WordPress, Laravel, Drupal, and Symfony are some of the popular tools that integrate with PHPStan. Here's a list of all 12 tools that integrate with PHPStan.

Why developers like PHPStan?

Here’s a list of reasons why companies and developers use PHPStan
Top Reasons
Be the first to leave a pro

PHPStan's Features

  • Static Analysis Tool
  • Focuses on finding errors in your code without actually running it
  • Extensible

PHPStan Alternatives & Comparisons

What are some alternatives to PHPStan?
ESLint
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
SonarQube
SonarQube provides an overview of the overall health of your source code and even more importantly, it highlights issues found on new code. With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.
Code Climate
After each Git push, Code Climate analyzes your code for complexity, duplication, and common smells to determine changes in quality and surface technical debt hotspots.
Prettier
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Codacy
Codacy is an automated code review tool for Scala, Java, Ruby, JavaScript, PHP, Python, CoffeeScript and CSS. It's continuous static analysis without the hassle. Save time in Code Reviews. Tackle your technical debt
See all alternatives

PHPStan's Followers
7 developers follow PHPStan to keep up with related blogs and decisions.
Kinza Razzaq
Roman Men
Rich Tigges
Bogdan Andrei-Rusu
Mandy Schoep
Solomon Antoine
Sajjad vafaie