PHP Classes

PHP OOP Autoloader: Autoload classes from directories and extensions

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 430 All time: 6,318 This week: 660Up
Version License PHP version Categories
oop-autoloader 1.0.0GNU General Publi...5PHP 5, Language


This class can autoload classes from directories and extensions.

It can add a list of one or more directories to search for class files.

The class register an autoloader function that will search for class files in the given directories with configurable file name extensions.

Picture of Yerfry Ramirez
  Performance   Level  
Name: Yerfry Ramirez is available for providing paid consulting. Contact Yerfry Ramirez .
Classes: 7 packages by
Country: Sweden Sweden
Age: ???
All time rank: 183918 in Sweden Sweden
Week rank: 276 Up2 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 1x


require_once 'autoloader/autoloader.php';

$autoloader = new Autoload();
$autoloader->setAutoloadDir(['pluginss', 'fak', 'plugins'], ['php', '.php']);


  Files folder image Files  
File Role Description
Files folder imageautoloader (1 file)
Files folder imageplugins (1 file)
Accessible without login Plain text file example.php Example Example script

  Files folder image Files  /  autoloader  
File Role Description
  Plain text file autoloader.php Class Class source

  Files folder image Files  /  plugins  
File Role Description
  Plain text file test.php Class Example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,318
This week:660Up