PHP Classes
elePHPant
Icontem

PHP Enum Data Type: Generate a enumeration class for a given namespace

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-07-17 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 434 All time: 5,970 This week: 1,123Up
Version License PHP version Categories
enumerator 3.0.1Free for non-comm...5.3PHP 5, Data types, Code Generation
Description Author

This class can generate a enumeration class for a given namespace.

It can generate code for a enumeration class from a given list of enumerated values and the respective names.

The class extends SplEnum if available, or emulates it with custom base class.

The generated class can be defigned under a specific namespace.

The default value of the enumeration can also be configured.

Innovation Award
PHP Programming Innovation award nominee
April 2013
Number 2
Enumerated data types can be implemented in PHP using the SplEnum class.

This class can generate enumerated data type classes that extend SplEnum class but are defined within a given namespace.

Manuel Lemos
Picture of Asher Wolfstein
  Performance   Level  
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Files folder imageFalcraft (2 directories)
Files folder imagesrc (1 directory)
Files folder imagetests (1 directory)
Accessible without login Plain text file composer.json Conf. Composer File
Accessible without login Plain text file LICENSE.txt Lic. License (MIT)
Accessible without login Plain text file phpunit.xml Test Unit Testing
Accessible without login Plain text file README.txt Doc. README

 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:434
This week:0
All time:5,970
This week:1,123Up