PHP code example of mobytes / laravel-sendpush

1. Go to this page and download the library: Download mobytes/laravel-sendpush 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/ */

    

mobytes / laravel-sendpush example snippets


Mobytes\SendPush\SendPushServiceProvider::class,

'SendPush' => Mobytes\SendPush\Facades\SendPush::class,

use Mobytes\SendPush\Facades\SendPush;

return [
    'token_user' => 'User Token key',
    'token_app' => 'App Token key',
];

SendPush::push($title, $message);

SendPush::send();