Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-04-21 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 382 All time: 6,046 This week: 1,503Up
Version License PHP version Categories  
enumerator 1.0Free for non-commercial...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
Name: Asher Wolfstein <contact>
Classes: 7 packages by
Country: United States United States
Age: ???
All time rank: 1566210 in United States United States
Week rank: 1779 Down196 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imageFalcraft (1 directory)

  Files folder image Files  /  Falcraft  
File Role Description
Files folder imageData (1 directory)

  Files folder image Files  /  Falcraft  /  Data  
File Role Description
Files folder imageTypes (1 file)

  Files folder image Files  /  Falcraft  /  Data  /  Types  
File Role Description
  Plain text file Enum.php Class The enum generator class

 Version Control Unique User Downloads Download Rankings  
 0%Total:382All time:6,046
 This week:0This week:1,503Up