PHPackages                             skinka/type-enum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. skinka/type-enum

ActiveLibrary

skinka/type-enum
================

Simple and fast implementation of enumerations with native PHP 5.4 and upper

1.0.3(9y ago)72.0kMITPHPPHP &gt;=5.4.0

Since Jan 26Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Skinka/type-enum)[ Packagist](https://packagist.org/packages/skinka/type-enum)[ Docs](http://github.com/skinka/type-enum)[ RSS](/packages/skinka-type-enum/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

PHP type Enum implementation
============================

[](#php-type-enum-implementation)

It's an abstract class that needs to be extended to use enumeration.

[What is an Enumeration?](https://en.wikipedia.org/wiki/Enumerated_type)\#Install Add `skinka/type-enum` to the project's composer.json dependencies and run php composer.phar install

\#Usage ##Create enum

```
