hyunk3l / php-design-patterns
There is no license information available for the latest version (1.0) of this package.
Just another design patterns collection for PHP
1.0
2017-03-02 20:49 UTC
Requires
- squizlabs/php_codesniffer: dev-master
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2025-03-10 22:21:17 UTC
README
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