composer autoload php code example
Example 1: composer autoload dump
composer dump-autoload
Example 2: composer don't load class
composer dumpautoload -o
Example 3: composer autoload
require __DIR__ . '/vendor/autoload.php';
$log = new Monolog\Logger('name');
$log->pushHandler(new Monolog\Handler\StreamHandler('app.log', Monolog\Logger::WARNING));
$log->addWarning('Foo');