PHP code example of journalctl / push-to-pushe

1. Go to this page and download the library: Download journalctl/push-to-pushe 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/ */

    

journalctl / push-to-pushe example snippets


[
    'app_ids' => ['appId-1'],
    'token' => 'your-pushe-service-token',
]

use Journalctl\HasPushToPushe;

...

use HasPushToPushe;

..

use Journalctl\PushToPushe\PushToPushe;

...

$user->pusheIds()->save(new PushToPushe(['pushe_id' => 'your-client-pushe-id']));

...

$user->pushToPushe('First notify', 'The first push to pushe notification!');
bash
php artisan vendor:publish