kubill / larapush
laravel pusher library
v1.0.0
2018-05-11 06:33 UTC
Requires
- jpush/jpush: ^3.5
This package is auto-updated.
Last update: 2025-04-29 00:44:32 UTC
README
this is a push library for laravel
Version Compatibility
PushProvider | Enable | Version | Support |
---|---|---|---|
极光 | yes | ^3.5 | 极光 |
more provider | coming soon |
Installation
Install using composer:
composer require kubill/larapush
Laravel version < 5.5 (optional)
Add the service provider in config/app.php
:
\Kubill\LaraPush\PusherServiceProvider::class,
And add the Pusher alias to config/app.php
:
'Pusher' => \Kubill\LaraPush\Facades\Pusher::class,
Then run these commands to publish config:
php artisan vendor:publish --provider="Kubill\LaraPush\PusherServiceProvider"
Basic Usage
use the Pusher
Facade:
use \Kubill\LaraPush\Facades\Pusher; Pusher::send('hello world', array('key' => 'value'));
License
LaraPush is licensed under The MIT License (MIT).