承接 donkfather/laravel-onesignal 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

donkfather/laravel-onesignal

Composer 安装命令:

composer require donkfather/laravel-onesignal

包简介

A Onesignal package for Laravel 5.2 or higher

README 文档

README

A Onesignal package for Laravel 5.2 or higher

##Installation

composer require donkfather/laravel-onesignal

After install this package you have to set the service provider on your config/app.php file

Donkfather\OneSignal\ServiceProvider::class,

To use the facade add this to the facades in app/config/app.php

'OneSignal' => \Donkfather\OneSignal\Facade\OneSignal::class

Then you just need to publish files ! Copy and paste it

php artisan vendor:publish --provider="Donkfather\OneSignal\ServiceProvider"

Setting up your OneSignal account on your Environment file

ONESIGNAL_APP_ID=759xxxxxxx

ONESIGNAL_API_KEY=MjYzxxxxxx

- User Auth Key -
ONESIGNAL_USER_AUTH_KEY=ZMOADxxxxxx

##Example Usage

use Donkfather\OneSignal\Exceptions\FailedToSendNotificationException;
use Donkfather\OneSignal\Facade\OneSignal;


Route::get('/', function () {
    try {

        $res = OneSignal::SendNotificationToAll('Hello', 'World');

    } catch (FailedToSendNotificationException $e) {

        dd($e);
    }
    dd($res);
});

Methods supported by this package and their parameters can be found in the API Reference ##Issues


If you have any questions or issues, please open an Issue .

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固