Files
sugar-cube-client/doc/index.md
2018-11-21 17:53:26 +01:00

844 B

Gitea for PHP

Yet another implementation of enumerated types

This implementation, based on traits, does not try to reproduce the semantics of traditional enumerations, like the ones found in C# or Java languages.

Unlike other PHP implementations, like the SplEnum class, it does not rely on object instances. Instead, it just gives a set of static methods to ease working with the public constants of a class representing an enumerated type.

Quick start

Install the latest version of Enums for PHP with Composer:

composer require sab-international/gitea

For detailed instructions, see the installation guide.