require composer autoload code example
Example 1: 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');
Example 2: php composer update
php composer.phar update
Example 3: composer add package
composer require name-of-package