PHP code example of manoaratefy / monolog-pushbullet

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

    

manoaratefy / monolog-pushbullet example snippets


// config/logging.php
'channels' => [
    //...
    'pushbullet' => [
        'driver' => 'monolog',
        'level' => env('LOG_LEVEL', 'debug'),
        'handler' => \Manoaratefy\MonologPushbullet\LogHandler::class,
        'with' => [
            'title'       => env('PUSHBULLET_NOTIFICATION_TITLE'),
            'accessToken' => env('PUSHBULLET_ACCESSTOKEN'),
            'emails'      => env('PUSHBULLET_TARGET'),
        ],        
    ],
];

// config/logging.php
'channels' => [
    //...
    'pushbullet' => [
        'driver' => 'monolog',
        'level' => env('LOG_LEVEL', 'debug'),
        'handler' => \Manoaratefy\MonologPushbullet\LogHandler::class,
        'with' => [
            'title'       => env('PUSHBULLET_NOTIFICATION_TITLE'),
            'accessToken' => env('PUSHBULLET_ACCESSTOKEN'),
            'emails'      => [
                '[email protected]',
                '[email protected]',
            ],
        ],        
    ],
];