定制 mobytes/laravel-sendpush 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mobytes/laravel-sendpush

Composer 安装命令:

composer require mobytes/laravel-sendpush

包简介

Laravel 5 SendPush Package

README 文档

README

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固