Examples of different Design Patterns implemented in PHP
... you could just clone this repo and run
composer install
in the root folder and then run:
docker-compose up -d
This way you would have the example running if you have docker and docker-compose installed and you could test it by navigating to:
http://dpatterns.localhost:8000
in your browser.
*If you are not using Chorme you would have to add
127.0.0.1 dpatterns.localhost
to your /etc/hosts file.
you could run the PHPUnit tests like so:
docker exec -it design_patterns_php ./vendor/bin/phpunit