machobearstudio / notification-pusher
用于轻松推送设备通知的独立PHP库。
dev-master
2023-09-21 20:21 UTC
Requires
- php: >=5.6 | ^7.0 | ^8.1| ^8.2
- ext-ctype: *
- doctrine/inflector: ~1.1
- laminas/laminas-http: 2.x
- machobearstudio/zendservice-apple-apns: dev-master
- machobearstudio/zendservice-google-gcm: dev-master
- symfony/console: >=2.3,<7
- symfony/error-handler: *
- symfony/filesystem: >=2.3,<7
- symfony/options-resolver: >=2.3,<7
- symfony/process: >=2.3,<7
Requires (Dev)
- atoum/atoum: 4.*
- atoum/stubs: 2.*
- atoum/visibility-extension: 2.*
- symfony/var-dumper: >=2.3,<7
This package is not auto-updated.
Last update: 2024-09-20 00:37:26 UTC
README
用于轻松推送设备消息通知的独立PHP库。
欢迎贡献力量!感谢。
贡献者
- Cédric Dugat (作者 / 主开发者)
- Oleg Abrazhaev (主开发者)
- 社区贡献者
- ohdonpiano (维护者 / 苹果支持 / php 8.1+ 支持)
安装
composer require ohdonpiano/notification-pusher
此仓库使用PSR-0自动加载。使用 composer 安装后,如需调整自动加载配置,请包括 include vendor/autoload.php
在您的 index.php 中。
要求
- PHP 5.6+
- PHP Curl 和 OpenSSL 模块
- 特定适配器要求(如 APNS 证书、GCM (FCM) API 密钥等)
- 版本
v3.0
支持 php 8.1+
今天可用的适配器
- APNS (苹果)
- FCM (安卓)
文档和示例
待办事项
- 重写PHPUnit 8+的测试(欢迎贡献!)
- 添加新功能(自定义APNS有效负载、GCM和FCM自定义选项等)
- 添加新适配器(如Blackberry和Windows手机)
- 编写更多文档和示例!
1.x用户
旧版本仍可在 1.x分支 中找到,并具有专用声明标记。