承接 joearcher/pooshlaravel 相关项目开发

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

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

joearcher/pooshlaravel

Composer 安装命令:

composer require joearcher/pooshlaravel

包简介

Poosh push messaging facade for Laravel 5

README 文档

README

Super simple facade to send push messages via a Poosh server.

Setup

Require this package in composer.json and run composer update

"joearcher/pooshlaravel": "dev-master"

After updating add the ServiceProvider the the providers array in config/app.php

'Joearcher\Pooshlaravel\PooshlaravelServiceProvider',

And then you can add the facade to the Facades array

'Poosh' =>	'Joearcher\Pooshlaravel\Facades\Poosh',

Publish the config

artisan vendor:publish

This creates a poosh.php file in config/, we recommend setting these options via your .env file

POOSH_SECRET - This is the shared secret it needs to be the same as the one set on your Poosh server.

POOSH_URL - The full url including the protocol to your Poosh server, e.g. http://poosh.blaa.

POOSH_PORT - The server port set on your Poosh server (Default is 1337).

Usage

This facade currently provides one method which requires 2 parameters.

Poosh::send($event,$payload) $event must be a string, this is the name of the event to fire on the client. $payload must be an array() and is the payload to be sent to all clients listening for the event.

	Poosh::send('message',['body' => 'This is a message']);

Thanks

Made possible by the awesome Guzzle Http client

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-25