Download the PHP package lynxsolutions/php-static-analysis without Composer
On this page you can find all versions of the php package lynxsolutions/php-static-analysis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lynxsolutions/php-static-analysis
More information about lynxsolutions/php-static-analysis
Files in lynxsolutions/php-static-analysis
Package php-static-analysis
Short Description Static Analysis Tools Configurations for Laravel projects
License MIT
Informations about the package php-static-analysis
PHP Static Analysis Tools configurations
This repository, besides the PHPCS LynxSolutionsCodingStandard, also includes configuration files for various static analysis tools used in LynxSolutions PHP(mostly Laravel) projects.
Installation
Composer:
Usage
PHP_CodeSniffer:
In your project's phpcs.xml
file add the following line:
If you don't have a phpcs.xml
file, here's a simple example:
Now you should be able to run:
PHP Mess Detector:
In your project's phpmd.xml
file add the following line:
If you don't have a phpmd.xml
file, here's a simple example:
Now you can run:
PHPStan:
In your project's phpstan.neon
file add the following line:
For Laravel projects:
First, make sure you install the larastan/larastan
package:
Then, in your project's phpstan.neon
, include the following:
If you don't have a phpstan.neon
file, here's a simple example:
Now you can run:
All versions of php-static-analysis with dependencies
squizlabs/php_codesniffer Version ^3.10
slevomat/coding-standard Version ^8.15
phpstan/phpstan Version ^1.12
phpmd/phpmd Version ^2.15