PHP Autoloader Class: Load classes automatically from a given directory

Recommend this page to a friend!
  Info   View files Example   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 202 This week: 1All time: 8,312 This week: 358Up
Version License PHP version Categories
php-autoloader-class 1.0.1MIT/X Consortium ...5PHP 5, Language, PHP 7
Description Author

This package can load classes automatically from a given directory.

It can register a given directory to make PHP load classes from files that exist in a given directory.

The loader provides a static function to make it easy to load classes with a single line of code to configure the auto-loader.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq <contact>
Classes: 46 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 4x

Details

PHP Simple Autoloader class

This package can auto load classes form path that provided.

Feature

1. Autloading the classes 2. Autoloading classes with namespace

Description

This package can auto load classes form path that provided.

Simple Example

for more detail see index.php


//require the files
require_once 'core/init.php';
//loading classes
Autoloader::Load('path/to/files');

  Files folder image Files  
File Role Description
Files folder imagecore (1 file, 1 directory)
Files folder imageinclude (1 directory)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Readme.md Doc. Documentation

  Files folder image Files  /  core  
File Role Description
Files folder imageclasses (1 file)
  Accessible without login Plain text file init.php Aux. Auxiliary script

  Files folder image Files  /  core  /  classes  
File Role Description
  Plain text file Autoloader.php Class Class source

  Files folder image Files  /  include  
File Role Description
Files folder imageclasses (3 files, 1 directory)

  Files folder image Files  /  include  /  classes  
File Role Description
Files folder imagephp (1 file, 1 directory)
  Plain text file A.php Class Class source
  Plain text file B.php Class Class source
  Plain text file Hello.php Class Class source

  Files folder image Files  /  include  /  classes  /  php  
File Role Description
Files folder imagedynamic (1 file, 1 directory)
  Plain text file C.php Class Class source

  Files folder image Files  /  include  /  classes  /  php  /  dynamic  
File Role Description
Files folder imagecore (1 directory)
  Plain text file D.php Class Class source

  Files folder image Files  /  include  /  classes  /  php  /  dynamic  /  core  
File Role Description
Files folder imagehack (1 file)

  Files folder image Files  /  include  /  classes  /  php  /  dynamic  /  core  /  hack  
File Role Description
  Plain text file E.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:202
This week:1
All time:8,312
This week:358Up

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