Quickload: Load classes from multiple directories

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 311 All time: 7,195 This week: 794Up
Version License PHP version Categories
quickload 1.0BSD License5.0PHP 5, Language
Description Author

This class can be used to automatically load classes in scripts located in multiple directories.

When a class is loaded it scans a given lists of directories for class script files that start with the class name and have specific file name extensions. The class may exclude scanning given sub-directories.

The class loads the class script file that is found in the scanned directories.

The list of class scripts that is found may be cached in an INI file to avoid the overhead of scanning the search directories again when another class needs to be loaded.

Picture of Martin Lebert
Name: Martin Lebert <contact>
Classes: 3 packages by
Country: Germany Germany
Age: 54
All time rank: 1727107 in Germany Germany
Week rank: 710 Up31 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • quickload.png
  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Files folder imageexample (2 directories)
Accessible without login Plain text file autoload.php Aux. File invoking Quickload
Accessible without login Plain text file example.php Example Example script

  Files folder image Files  /  classes  
File Role Description
  Plain text file Quickload.class.php Class Main Quickload class

  Files folder image Files  /  example  
File Role Description
Files folder imageclasses (2 files, 1 directory)
Files folder imageclasses2 (2 files, 1 directory)

  Files folder image Files  /  example  /  classes  
File Role Description
Files folder imagetmp (1 file)
  Plain text file Autoload.class.php Aux. Example class
  Plain text file Motorbike.class.php Class Example class

  Files folder image Files  /  example  /  classes  /  tmp  
File Role Description
  Plain text file Foo.class.php Aux. Example class

  Files folder image Files  /  example  /  classes2  
File Role Description
Files folder imagetmp (1 file)
  Plain text file Smarty.class.inc Aux. Example class
  Plain text file Smarty_Compiler.class.inc Aux. Example class

  Files folder image Files  /  example  /  classes2  /  tmp  
File Role Description
  Plain text file Bar.class.php Aux. Example class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:311
This week:0
All time:7,195
This week:794Up
User Comments (1)
Nice work, tested and working.
11 years ago (David Ferreira)
67%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.