PHP Classes

PHP One Line Enum: Create enumerated types from arrays of values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 204 All time: 8,443 This week: 560Up
Version License PHP version Categories
one-line-enum 1.0GNU Lesser Genera...5.3PHP 5, Data types, Code Generation
Description 

Author

This class can create enumerated types from arrays of values.

It can generate the code for a class definition with a given name that implements an enumerated types from an array of values.

The generated enumerated classes support namespaces, strict comparison and and bitwise operations.

Picture of Oliver Anan
Name: Oliver Anan <contact>
Classes: 2 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (5)  
File Role Description
Files folder imageclass (1 directory)
Files folder imageexamples (3 files)
Accessible without login Plain text file autoLoader.inc.php Aux. class autoloader

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:204
This week:0
All time:8,443
This week:560Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2400