air-petr / php-turnstile
Funny PHP implementation of a Monostate pattern
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/air-petr/php-turnstile
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-10-12 02:40:57 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