Login   Register  
PHP Classes

Classifier: Load and initialize classes from a given directory

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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-06-05 (6 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 293 All time: 6,668 This week: 1,384Up
Version License PHP version Categories  
classifier 1.0The PHP License3.0PHP 5, Language
Description Author  

This class can load and initialize classes from a given directory.

It scans a given directory and includes all files it finds.

The class takes a look at each file name and creates an object of each class obtaining the class name from the file name after removing the .php file name extension.

The created objects are stored in variables of this class with the same name of the created objects classes.

The class loads any dependent classes looking at the requires variable array of the created objects.

It also initializes all the classes it finds by calling the respective init function.

Picture of Andoitz Jordan Marmolejo
Name: Andoitz Jordan Marmolejo is available for providing paid consulting. Contact Andoitz Jordan Marmolejo .
Classes: 7 packages by
Country: Spain Spain
Age: 24
All time rank: 137428 in Spain Spain
Week rank: 143 Up6 in Spain Spain Up
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

  Files folder image Files  
File Role Description
Files folder imageclass (4 files)
Plain text file Classifier.php Class Classifier
Plain text file GenericClass.php Class GenericClass
Accessible without login Plain text file index.php Example Index Example Use
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  class  
File Role Description
  Plain text file Class1.php Class Class1
  Plain text file Class2.php Class Class2
  Plain text file Classifier.php Class Class source
  Plain text file GenericClass.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 75%Total:293All time:6,668
 This week:0This week:1,384Up