https://github.com/hyunk3l/php-design-patterns
Just another collection of design patterns implementations in PHP
https://github.com/hyunk3l/php-design-patterns
best-practices design-pattern design-patterns php php-examples php7
Last synced: 10 months ago
JSON representation
Just another collection of design patterns implementations in PHP
- Host: GitHub
- URL: https://github.com/hyunk3l/php-design-patterns
- Owner: Hyunk3l
- License: mit
- Created: 2015-02-03T17:02:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T20:18:00.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T09:11:34.116Z (10 months ago)
- Topics: best-practices, design-pattern, design-patterns, php, php-examples, php7
- Language: PHP
- Size: 1.03 MB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://packagist.org/packages/hyunk3l/php-design-patterns)
[](https://packagist.org/packages/hyunk3l/php-design-patterns)
[](https://packagist.org/packages/hyunk3l/php-design-patterns)
## 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](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
```