Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Xesau/Autoloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Autoloader

Xesau\Autoloader is a simple PHP autoloader script

Usage

<?php

namespace Xesau\MyApp;

use Xesau\Autoloader;

use Xesau\Router;

include_once 'src/Xesau/Autoloader.php';

(new Autoloader('/path/to/vendor'))->register();
(new Autoloader('/path/to/app', __NAMESPACE__))->register();

$router = new Router(); // is automatically loaded from /path/to/vendor/Xesau/Router.php

MyController:doSomething(); // is automatically loaded from /path/to/app/MyController.php

About

Simple PHP autoloader script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages