Download the PHP package projektmotor/symfony-coding-standard without Composer
On this page you can find all versions of the php package projektmotor/symfony-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download projektmotor/symfony-coding-standard
More information about projektmotor/symfony-coding-standard
Files in projektmotor/symfony-coding-standard
Package symfony-coding-standard
Short Description Internal PHP coding standard of ProjektMOTOR
License MIT
Homepage https://www.projektmotor.de
Informations about the package symfony-coding-standard
Symfony coding standard of ProjektMOTOR
Symfony coding standards for ProjektMOTOR enriched by several useful rules.
We at ProjektMOTOR :heart: clean code. So we have a have an internal PHP coding standard based on symfony coding standard used for all our projects. We are using PHP CodeSniffer with the great Symfony PHP CodeSniffer Coding Standard of djoos and some sniffs of Slevomat Coding Standard, both adopted to our own needs.
Goals of our coding standard
- Using already existing standards (PSR-1, PSR-2, Symfony).
- Coding standard can be used across different projects.
- Avoid duplications (also between code, CVS history and documentation).
- Ensure code quality across different dev setups (e.g. different IDEs).
Installation
If you use Composer, you can install ProjektMOTOR Coding Standard in your project with the following command:
Optional: To install coding standard automatically edit your composer script:
Usage
Just create a phpcs.xml.dist
in your project's root directory with the following content:
And then you can execute the CodeSniffer like this:
vendor/bin/phpcs -s -p --colors src/
All versions of symfony-coding-standard with dependencies
slevomat/coding-standard Version >=8.7.0
squizlabs/php_codesniffer Version ^3.0