PHP Classes

PHP OOP Autoloader: Autoload classes from directories and extensions

Recommend this page to a friend!
     
  Info   Example   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: 430 All time: 6,321 This week: 660Up
Version License PHP version Categories
oop-autoloader 1.0.0GNU General Publi...5PHP 5, Language
Description 

Author

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: 183618 in Sweden Sweden
Week rank: 136 Up1 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
require_once 'autoloader/autoloader.php';

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

new
test();
?>


  Files folder image Files (3)  
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 (3)  /  autoloader  
File Role Description
  Plain text file autoloader.php Class Class source

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

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  
 100%
Total:430
This week:0
All time:6,321
This week:660Up