Download the PHP package braincrafted/symfony2cs-bundle without Composer
On this page you can find all versions of the php package braincrafted/symfony2cs-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package symfony2cs-bundle
BraincraftedSymfony2CSBundle
Unfortunately PHP_CodeSniffer does not contain the Symfony2 coding standard and is not extensible. If you want to install PHP_CodeSniffer using Composer you have to install the coding standard manually everytime PHP_CodeSniffer is updated. Until now.
Author
- Florian Eckerstorfer (Twitter)
- Get updates on my open source projects by following @braincrafted on Twitter.
Compatiblity
BraincraftedSymfony2CSBundle | Symfony |
---|---|
0.1.* | 2.3.* |
0.2.* | 2.4.* |
master | 2.4.* |
Installation
First you have to add the bundle to your composer.json
:
Next you have to add the bundle to your AppKernel.php
:
You can now execute the braincrafted:symfony2cs:install
command to install the Symfony2 coding standard:
However, things get better if you add the script handler that is included in the bundle to the post-install-cmd
and post-update-cmd
sections of your composer.json
:
Usage
If you add the script handler to the post-install-cmd
and post-update-cmd
sections of your composer.json
the bundle will install or update the coding standard everytime you run composer install
or composer update
.
You can use the Symfony2 coding standard when you run PHP_CodeSniffer:
Error handling
If you should encounter problem add the --verbose
option to the command to view the output of the executed commands.
Changelog
Version 0.2.1 (27 August 2014)
- Updated path to coding standard repo (the original is gone)
Version 0.2 (14 November 2013)
- Changed namespace from
Bc
toBraincrafted
- Support for Symfony 2.4
License
The bundle is licensed under The MIT License. See the LICENSE
file for more information.