1. Go to this page and download the library: Download libressltd/lbpushcenter 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/ */
libressltd / lbpushcenter example snippets
// Add a new device
Push_device::add($token, $app_name);
// Send message
$device = Push_device::findOrFail($device_id); // not device token
$device->send($title, $desc); // sync push
$device->send_in_queue($title, $desc) // must run in queue
// Add in app\Console\Kernel.php
protected $commands = [
Commands\LBPushCommand::class
];
// Then run
// Mode all
php artisan lbpushcenter:push // --mode=all (allias)
// Mode master
php artisan lbpushcenter:push --mode=master
// Mode worker
php artisan lbpushcenter:push --mode=worker
// Note
// Run mode all for normal system (optional)
// Run master first
// Then run worker (run as many as you want)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.