Laravel 5 SendPush Package

v1.2 2016-12-29 17:33 UTC

This package is not auto-updated.

Last update: 2021-01-17 20:01:48 UTC


====== A Laravel 5 package for Android and soon in iOS push notification service from

**Please if you found any bug or you have any enhancement, You're so welcomed to open an Issue or make a pull request.



Add to require in composer.json

composer require mobytes/laravel-sendpush
    "require": {
        "mobytes/laravel-sendpush": "~1.2"
composer update

Once mobytes/laravel-sendpush is installed, you need to register the Service Provider. To do that open app/config/app.php and add the following to the providers key.


Next you add this facade to app/config/app.php

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

To use this in your L5 application:

use Mobytes\SendPush\Facades\SendPush;


Create app/config/sendpush.php and fill it with your Token and the User Key from

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


Now you can use the package like that:

To Set a message (Required)

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

To Send the Message (Required)



In the version 1.2.0 and above it supports the Artisan Commands but first make sure that you've done the Configuration correctly.

You can run

php artisan list

and you'll find

sendpush:send               SendPush Command

To send a pushover message you'll be able to use it like this way ( Title and Message are Required )

php artisan sendpush:send "YourTitle" "YourMessage"

to turn on the debug mode just add


Copyright (c) 2016 SendPush Licensed under the MIT license.