Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php using composer autoload

require __DIR__ . '/vendor/autoload.php';

$log = new MonologLogger('name');
$log->pushHandler(new MonologHandlerStreamHandler('app.log', MonologLogger::WARNING));
$log->warning('Foo');
Source by getcomposer.org #
 
PREVIOUS NEXT
Tagged: #php #composer #autoload
ADD COMMENT
Topic
Name
7+3 =