Enumerated Types polyfill for PHP
MIT License
"Enumerated Types" polyfill for PHP made with YAY!. The preprocessor has no bridge for project integration yet, but you can have a taste of it by running:
# install it
git clone [email protected]:marcioAlmada/yay-enums.git
cd yay-enums
composer install
# run it!
php test.php
Please, read enum.tests.php to see the specs.
This is inspired by the "Enumerated Types" RFC.