From c17420210e4bfac88c04863cf02b45596081c174 Mon Sep 17 00:00:00 2001 From: Portey Vasil Date: Wed, 10 May 2017 11:14:04 +0300 Subject: [PATCH] Add read.me file --- .gitignore | 2 ++ README.md | 18 ++++++++++++++++++ composer.json | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 README.md 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" } }