PHP code example of claudiosanches / wp-autoloader

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

    

claudiosanches / wp-autoloader example snippets




use ClaudioSanches\WPAutoloader\Autoloader;

$autoloader = new Autoloader();

// Add namespace.
$autoloader->addNamespace('ClaudioSanches\Foo\Bar', __DIR__ . '/src');

// Register all autoload.
$autoloader->register();