PHP code example of talesoft / tale-loader

1. Go to this page and download the library: Download talesoft/tale-loader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

talesoft / tale-loader example snippets


use Tale\Loader;


$loader = new Loader(__DIR__.'/library');
$loader->register();

$loader->unregister();

$loader = new Loader(__DIR__.'/vendor/my/app', 'My\\App\\');

$loader = new Loader(__DIR__.'/lib', 'My\\', '%s.class.php');

/library
    /App.php
    /App
        /Middleware.php
    /Db.php
    /Db/Table.php