PHP Classes

Quickload: Load classes from multiple directories

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 312 All time: 7,302 This week: 660Up
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: 58
All time rank: 1743108 in Germany Germany
Week rank: 164 Up8 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

Screenshots (1)  
  • quickload.png
  Files folder image Files (10)  
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 (10)  /  classes  
File Role Description
  Plain text file Quickload.class.php Class Main Quickload class

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

  Files folder image Files (10)  /  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 (10)  /  example  /  classes  /  tmp  
File Role Description
  Plain text file Foo.class.php Aux. Example class

  Files folder image Files (10)  /  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 (10)  /  example  /  classes2  /  tmp  
File Role Description
  Plain text file Bar.class.php Aux. Example class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:312
This week:0
All time:7,302
This week:660Up
User Comments (1)
Nice work, tested and working.
16 years ago (David Ferreira)
67%StarStarStarStar