PHP Classes


Recommend this page to a friend!
  Classes of Samuel Adeshina   Plug Loader   Download  
Role: Auxiliary data
Content type: text/markdown
Description: Doc
Class: Plug Loader
Autoload classes based on PSR-4 recommendation
Author: By
Last change: Update
Date: 8 years ago
Size: 817 bytes


Class file image Download

Plug-Loader Join the chat at


A PSR4 Implementation of an autoloader for the ~Plug Microframework.


> The configuration file for this autoloader can be __supplied in two different formats__: > It can be provided as a json file or as an xml file.

The Autoloader first checks for a json file before xml since thats the default config format. You must create an xml autoload configuration file in the document root in order to use xml for the config format. You can rename the autoload.xml.template file to autoload.xml after the autoload.json file has been deleted or renamed to test this.