sevenshi/serverchan
Composer 安装命令:
composer require sevenshi/serverchan
包简介
using the serve of serverChan to notify you
README 文档
README
See Server酱
Quick Start Guide
-
Create a Laravel 5.5 project:
composer create-project laravel/laravel myproject dev-develop -
cd myproject -
Add dependency:
composer require sevenshi/serverchan -
Copy configuration:
php artisan vendor:publish -
set the SCKEY you get from the serverchan on the .env
SCKEY=SCU17044T7eafa406fxxxxxxxxxx
Now you are ready to use the Seven Facade, e.g. open routes/web.php:
- send message to yourself
<?php $reponse = Seven::setTitle('hi')->setMessage('hello world')->push();
- send message to who subscribe your channel
the channel comes from the PushBear,and channel key comes from the channel you create
<?php $response = Seven::setTitle('hi')->setMessage('hello every body')->setChannel('4794-e28b9dae54e86365773xxx')->pushbear();
- response
if the request is ok,it will response these data below:
push:
- success {"errno":0,"errmsg":"success","dataset":"done"}
pushbear:
- {"code":0,"message":"","data":"1\u6761\u6d88\u606f\u5df2\u6210\u529f\u63a8\u9001\u5230\u53d1\u9001\u961f\u5217","created":"2018-07-18 14:43:05"}
sevenshi/serverchan 适用场景与选型建议
sevenshi/serverchan 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 405 次下载、GitHub Stars 达 16, 最近一次更新时间为 2018 年 07 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sevenshi/serverchan 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sevenshi/serverchan 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 405
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-19