cspray / yape
Type-safe, object-backed enum implementation in userland PHP.
3.1.0
2021-03-19 21:42 UTC
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^9
Suggests
- cspray/yape-cli: A CLI tool to generate Enum code for you.
- cspray/yape-dbal: A yape extension that allows storing Enums in Doctrine.
README
A type-safe, object-backed enum implemented in userland PHP. Combined with cspray/yape-cli aims to provide an easy way to use enums in your PHP codebase.
Requirements
- PHP 7.2+
Installation
composer require cspray/yape
We also recommend taking a look at cspray/yape-cli and cspray/yape-dbal.
Documentation
The library is documented in-repo under the docs/
folder, online at http://cspray.io/yape, and within the source code
itself.