PHP code example of zonuexe / aliasloader

1. Go to this page and download the library: Download zonuexe/aliasloader 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/ */

    

zonuexe / aliasloader example snippets



namespace MyProject\Nested;

use Deep\Nested\Library\Module\Awesome\Miracle as AwesomeClass;

AwesomeClass::awesome_method();




/**
 * bootstrap.php
 */
\Teto\AliasLoader::add('Deep\Nested\Library\Module\Awesome\Miracle', 'AwesomeClass');


namespace MyProject\Nested;

AwesomeClass::awesome_method();