air-petr / php-turnstile
Funny PHP implementation of a Monostate pattern
v1.0.2
2022-02-11 18:15 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-12 00:19:19 UTC
README
Funny PHP implementation of a Monostate pattern. An adopted example from Robert Martin's "Agile Software Development, Principles, Patterns, and Practices" book.
Installation
composer require air-petr/php-turnstile
Demo
You can play with code in demo
folder. Here's how you can run interactive game:
php demo/example.php
Testing
There are some unit tests in test
folder. Run tests by:
composer test