Login   Register  
PHP Classes
elePHPant
Icontem

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

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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-05-05 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 197 All time: 7,217 This week: 1,478Up
Version License PHP version Categories  
one-line-enum 1.0GNU Lesser General Publ...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
Age: 31
All time rank: 3016182 in Germany Germany
Week rank: 1735 Up89 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
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

  Files folder image Files  /  class  
File Role Description
Files folder imageCo3 (1 directory)

  Files folder image Files  /  class  /  Co3  
File Role Description
Files folder imageCodeGen (1 file)

  Files folder image Files  /  class  /  Co3  /  CodeGen  
File Role Description
  Accessible without login Plain text file Enum.php Class main class

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file enum_advanced.php Example advanced example script
  Accessible without login Plain text file enum_basics.php Example basic example script
  Accessible without login Plain text file enum_example_doc.php Example example how to document enumerations

 Version Control Unique User Downloads Download Rankings  
 0%Total:197All time:7,217
 This week:0This week:1,478Up