Download the PHP package narrowspark/coding-standard without Composer
On this page you can find all versions of the php package narrowspark/coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download narrowspark/coding-standard
More information about narrowspark/coding-standard
Files in narrowspark/coding-standard
Package coding-standard
Short Description The Narrowspark Coding Standard is a set of phpstan, psalm, infection, rector and php-cs-fixer rules applied to all Narrowspark projects.
License MIT
Homepage https://github.com/narrowspark/coding-standard
Informations about the package coding-standard
Narrowspark Coding Standard
The Narrowspark Coding Standard for all Narrowspark projects.
Installation
Use
Settings.yml
Create a configuration file settings.yml
in .github
PHPstan
Create a configuration file phpstan.neon
and phpstan-baseline.neon
.
Follow the links to check, how to configure the rules:
The Narrowspark PHPstan rules providing configurations for symplify/phpstan-rules
.
Default configurations:
PHP-CS-Fixer
Create a configuration file .php_cs
in the root of your project with this content:
Info:
The used php-cs-fixer rules.
For more information, take a look on php-cs-fixer-config.
Psalm
Add your config with this command.
Or use our configuration
Now you need to add the phpunit
and mockery
plugin to the created psalm.xml
Infection
The first time you run Infection for your project, it will ask you questions to create a config file infection.json.dist
Rector
Create rector.php
and add the configurations to it.
Info: for more information about existing sets and setting options, take a look on rectorphp docs.
Composer
Then edit your composer.json
file and add these scripts:
Tip: if some processes taking longer than the default composer
process-timeout: 300
you can add this to in your composer.json
Add .php_cs.cache
to your .gitignore
file.
Versioning
This library follows semantic versioning, and additions to the code ruleset are performed in major releases.
Testing
Contributing
If you would like to help take a look at the list of issues and check our CONTRIBUTING.md guide.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
License
The Narrowspark Coding Standard is open-sourced software licensed under the MIT license
All versions of coding-standard with dependencies
infection/infection Version ^0.21.3
narrowspark/php-cs-fixer-config Version ~6.3.2
phpstan/phpstan Version ^0.12.80
phpstan/phpstan-deprecation-rules Version ^0.12.6
phpstan/phpstan-mockery Version ^0.12.12
phpstan/phpstan-phpunit Version ^0.12.17
phpstan/phpstan-strict-rules Version ^0.12.9
psalm/plugin-mockery Version ~0.7.0
psalm/plugin-phpunit Version ^0.15.1
rector/rector Version ^0.10.0
rector/rector-phpunit Version ^0.10.0
slam/phpstan-extensions Version ^5.1.0
symplify/phpstan-rules Version ^9.2
thecodingmachine/phpstan-strict-rules Version ^0.12.1
vimeo/psalm Version ^4.6.2