The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist lxpgw/logger "~1.0.0"
or add
"lxpgw/logger": "~1.0.0"
to the require section of your composer.json
file.
$pubu = new \lxpgw\logger\Pubu(['remote' => 'your pubu.im service url']);
$logger->send('Hello');
//with attachments
$pubu->send('Hello', [
['title' => 'This is title', 'description' => 'This is description.']
]);
[
'log' => [
'targets' => [
'class' => \lxpgw\logger\LogTarget,
'chanel' => 'the pubu.im service url', // Config the channel you want send to.
'exportInterval' => 1, //send per message directly
'logVars' => [],
]
]
]
$ composer test
Please see CHANGELOG for more information what has changed recently.