PHP code example of purc / autoloader-class-map

1. Go to this page and download the library: Download purc/autoloader-class-map 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/ */

    

purc / autoloader-class-map example snippets


    
    putenv('PURC_AUTOLOADER_CLASS_MAP_FILE="/path/to/your/class_map_file.php"');
    


$GLOBALS['PURC_AUTOLOADER_CLASS_MAP_FILE'] = '/path/to/your/class_map_file.php';


sh
$ php ./examples/class_map_generation.php