The main goal is to practice the Object Calisthenics rules proposed by Jeff Bay in The ThoughtWorks Anthology.
- Only one level of indentation per method
- Don't use the else keyword
- Wrap all primitives and strings
- First class collections
- One dot per line
- Don't abbreviate
- Keep all entities small
- No classes with more than two instance variables
- No getters/setters/properties
-
Install composer
curl -sS https://getcomposer.org/installer | php
-
Install the dependencies
php composer.phar install
./vendor/bin/phpunit
./vendor/bin/phpcs --standard=phpcs.xml src/