Please find several examples of playable design patterns I already used.
- install PHP & composer
sudo apt install php -y && sudo apt install composer -y
- dumps the autoloader
composer dump-autoload -o
php index.php # get the list of testable patterns
php index.php pattern # execute a specific pattern
- Add to
App\DesignPattern::LIST
the new pattern name, - Create the associated controller into
Controller
, - Create the associated directory into
App
, - Play with it!