Package Data | |
---|---|
Maintainer Username: | evervasquez |
Maintainer Contact: | pever@unsm.edu.pe (eveR Vásquez) |
Package Create Date: | 2016-12-29 |
Package Last Update: | 2017-01-09 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-28 15:18:05 |
Package Statistics | |
---|---|
Total Downloads: | 14 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
====== A Laravel 5 package for Android and soon in iOS push notification service from http://notify.mobytesac.com.
**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.
Mobytes\SendPush\SendPushServiceProvider::class,
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 http://notify.mobytesac.com/
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)
SendPush::send();
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
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.