Login   Register  
PHP Classes
elePHPant
Icontem

Tracker: Locate and index auto-loaded classes

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-01-12 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 636 All time: 4,525 This week: 1,391Up
Version License PHP version Categories  
tracker 1.0GNU General Public Lice...5.0PHP 5, Language
Description Author  

This class can be used to locate and index classes to be auto-loaded when their objects are instantiated.

It searches for PHP classes in files and generates an index file in the INI format with the paths of all the classes that it found, so next time a class needs to be loaded it just needs to look in the generated INI file.

It also provides an auto-load function that looks in the generated INI file entries for the path of the class file to be loaded.

Innovation Award  
PHP Programming Innovation award nominee
January 2007
Number 8
PHP 5 autoload support can simplify the loading of the classes that an application uses. However, if the application needs to load classes from multiple directories, the autoload function can become very complicated.

This package offers a solution that addresses that problem. It creates an index of all classes available in multiple directories. When a class is loaded, it just performs simple index lookup to determine the path of each class file.

Manuel Lemos
Picture of Karel Klima
Name: Karel Klima <contact>
Classes: 1 package by
Country: Czech Republic Czech Republic
Age: 24
All time rank: 262428 in Czech Republic Czech Republic
Week rank: 1848 Up20 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example of usage
Plain text file classfinder.php Class ClassFinder locates classes in a PHP file
Plain text file tracker.php Class Main class for managing scans and autoloading

 Version Control Unique User Downloads Download Rankings  
 0%Total:636All time:4,525
 This week:0This week:1,391Up