PHP code example of nextras / composer-autoload-simplifier

1. Go to this page and download the library: Download nextras/composer-autoload-simplifier 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/ */

    

nextras / composer-autoload-simplifier example snippets


 declare(strict_types = 1);

(function () {
	$on (string $id, string $path) {
		if (empty($GLOBALS['__composer_autoload_files'][$id])) {
				static $classMap = [
			'Tracy\\Bar' => __DIR__ . '/tracy/tracy/src/Tracy/Bar.php',
			'Tracy\\BlueScreen' => __DIR__ . '/tracy/tracy/src/Tracy/BlueScreen.php',
            ...
		];

		if (isset($classMap[$className])) {
			$