Skip to content

Files

Latest commit

 

History

History
29 lines (21 loc) · 1.09 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.09 KB

php-design-patterns

Latest Stable Version Total Downloads License

Just another collection of design patterns implementations in PHP

Run Tests

  • Run ./composer.phar install
  • Now launch UTs running ./vendor/bin/phpunit test/

Run PHP CS fixer

https://github.com/FriendsOfPHP/PHP-CS-Fixer

Install the tool:

mkdir tools
mkdir tools/php-cs-fixer
./composer.phar require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer

Run the tool:

./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix test