An Emacs interface that integrates PHPStan, enabling PHP static analysis directly within the Emacs editor.
Interface to PHPStan (PHP static analyzer)
This tool is designed for PHP developers who use Emacs as their code editor and want to seamlessly run PHPStan static analysis on their code without leaving the editor. It helps identify potential vulnerabilities and code quality issues during development, improving application security and code robustness.
Requires PHPStan to be installed separately; ensure PHPStan is properly configured for your project to get accurate results. Best used within Emacs for streamlined static analysis during PHP development.
Ensure PHPStan is installed and accessible in your system
Clone the repository or install phpstan.el via Emacs package manager
Add (require 'phpstan) to your Emacs configuration
Configure phpstan executable path if necessary
Restart Emacs or reload configuration to activate phpstan.el
M-x phpstan
Run PHPStan analysis on the current PHP buffer
M-x phpstan-clear
Clear PHPStan diagnostics and results from the buffer
Customize phpstan-command
Set or modify the PHPStan executable command used by the tool