diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af1f417 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +composer.lock +/vendor diff --git a/README.md b/README.md new file mode 100644 index 0000000..3c17601 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Youshido Symfony2 PHP CodeSniffer Coding Standard + +This standard copy [Symfony2](https://github.com/djoos/Symfony2-coding-standard) one with following changes: +- Concatenation spacing equal 1 + +### Installation + +This standard can be installed with the [Composer](https://getcomposer.org/) dependency manager. + +Install the coding standard as a dependency of your project + + composer require --dev youshido/cs-code-standard + +### Usage + +Run CodeSniffer with following parameters to check your project code style: + + ./vendor/bin/phpcs --encoding=utf-8 --extensions=php --standard=./vendor/youshido/cs-code-standard ./src -p diff --git a/composer.json b/composer.json index 5d16010..b991f44 100644 --- a/composer.json +++ b/composer.json @@ -14,5 +14,8 @@ "minimum-stability": "dev", "require": { "escapestudios/symfony2-coding-standard": "^2.10" + }, + "require-dev": { + "youshido/cs-code-standard": "dev-master" } }