PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Samuel Adeshina   Plug Loader   example/index.php   Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example
Class: Plug Loader
Autoload classes based on PSR-4 recommendation
Author: By
Last change:
Date: 8 years ago
Size: 579 bytes


Class file image Download
require "../vendor/autoload.php";

     * This example uses plug-loader to autoload the bar and foo classes.
     * Listed below is a dependency list for the bar, foo and faz class located within the /src directory
     * Bar depends on Foo and Faz
     * Foo depends on Faz
     * The autoloader automatically finds this classes and autoloads them, without you having to specify that
     * in autoload.json (see for yourself);
new Example\Bar\Bar();

Example\Foo\Foo::log("Emergency! A Fire just started at 2,3,4 Avenue! A baby is trapped.");