Skip to content

Rumi-Aguirre/PHP-Autoloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoloadWithNamespacesPHP

Basic structure example for autoloading with namespaces in PHP.

Autoloader.php

Has all the logic of the Autoloading, this example is based on a library that has all the classes under the ./ directory or subdirectories, you can just change that string if your application is under further directories.

$dir = __DIR__."/";

MainClass.php

Main Class for testing purposes, this also loads another class called AutoloadedClass

About

PHP Namespaces Autoloader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages