https://github.com/cspray/yape
Yet Another PHP Enum. A type-safe, object-backed enum in userland PHP.
https://github.com/cspray/yape
Last synced: about 1 year ago
JSON representation
Yet Another PHP Enum. A type-safe, object-backed enum in userland PHP.
- Host: GitHub
- URL: https://github.com/cspray/yape
- Owner: cspray
- License: mit
- Created: 2019-08-13T00:17:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T21:42:48.000Z (about 5 years ago)
- Last Synced: 2025-03-14T20:57:53.474Z (about 1 year ago)
- Language: PHP
- Homepage: https://cspray.io/yape
- Size: 155 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Yet Another PHP Enum (yape)
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
```shell
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.
[cspray/yape-cli]: https://github.com/cspray/yape-cli
[cspray/yape-dbal]: https://github.com/cspray/yape-dbal