PHP code example of moonwalkingbits / wordpress-autoloader-composer-plugin

1. Go to this page and download the library: Download moonwalkingbits/wordpress-autoloader-composer-plugin 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/ */

    

moonwalkingbits / wordpress-autoloader-composer-plugin example snippets




$autoloader = espace_mapping( 'Additional\\Namespace\\', __DIR__ . '/path' );
json
{
    "autoload": {
        "files": [
            "vendor/wordpress-autoload.php"
        ]
    }
}
json
{
    "autoload": {
        "Additional\\Namespace\\": "path/",
        "files": [
            "vendor/wordpress-autoload.php"
        ]
    }
}