PHP code example of prod3v3loper / php-auto-autoloader

1. Go to this page and download the library: Download prod3v3loper/php-auto-autoloader 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/ */

    

prod3v3loper / php-auto-autoloader example snippets



// Define the document root project folder
define('MBT_DOCUMENT_ROOT', __DIR__);

// Load the autoloader


// Define the document root project folder
define('MBT_DOCUMENT_ROOT', __DIR__);

// Load the autoloader

define('MBT_CORE_AUTOLOAD_INDEX', true);

define('MBT_CORE_AUTOLOAD_READ_MAX_LINES', 49);

define('MBT_DEBUG_DISPLAY_AUTOLOAD', true);

define('MBT_DEBUG_DISPLAY_AUTOLOAD_SEARCH', true);

define('MBT_DOCUMENT_ROOT', __DIR__);

define('MBT_SERVER_ROOT', str_replace(MBT_DOCUMENT_ROOT, '', str_replace(filter_input(INPUT_SERVER, 'DOCUMENT_ROOT'), '', str_replace("\\", "/", MBT_DOCUMENT_ROOT))));
define('MBT_HTTP_ROOT', get_protocol() . get_host() . MBT_SERVER_ROOT);

php composer.phar install

git clone https://github.com/prod3v3loper/php-auto-autoloader.git /projects/