cspray/yape

Type-safe, object-backed enum implementation in userland PHP.

3.1.0 2021-03-19 21:42 UTC

This package is auto-updated.

Last update: 2024-11-20 05:08:49 UTC


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.