New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mobytes/laravel-sendpush

Laravel 5 SendPush Package
15
Install
composer require mobytes/laravel-sendpush
Latest Version:v1.2
PHP:>=5.6.4
Laravel:5
License:MIT
Last Updated:Jan 9, 2017
Links: GitHub  ·  Packagist
Maintainer: evervasquez

Laravel 5 SendPush Package

====== 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.

Content

Installation

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;

Configuration

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',
];

Usage

Now you can use the package like that:

To Set a message (Required)

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

To Send the Message (Required)

SendPush::send();

Commands

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


License

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

Related Packages

elfsundae/console

CLI library based on Laravel Console for creating PHP console application.

19 8
edwardkarlsson/laravel-pushover

A simple, yet very powerful, package that helps you get started with sending pus...

2,045 14
tomshaw/laravel-calendar-table

A Laravel calendar table database migration and console command.

64,343 8
michael-rubel/artisan-release-command

Artisan command to create a GitHub release of your code.

1,240 15
robinfranssen/analyzelocale

This scans your laravel project for used locale keys that aren't translated by y...

21,217 25

Version History

Version Released PHP Laravel License
v1.2 >=5.6.4 5.1.*|5.2.*|5.3.* MIT
v1.0 >=5.6.4 5.1.*|5.2.*|5.3.* MIT