pigeon/pigeon
Composer 安装命令:
composer require pigeon/pigeon
包简介
Pigeon lets you easily manage your outbound email, push notifications and SMS. Visit https://pigeonapp.io for more details.
README 文档
README
Pigeon lets you easily manage your outbound email, push notifications and SMS. Visit https://pigeonapp.io for more details.
Installation
The recommended way to install Pigeon is through Composer.
$ composer require pigeon/pigeon
Usage
$pigeon = new Pigeon\Client('PIGEON_PUBLIC_KEY', 'PIGEON_PRIVATE_KEY');
Public (PIGEON_PUBLIC_KEY) and private (PIGEON_PRIVATE_KEY) keys would be retrieved from the env variables if not passed.
Prepare for the delivery
$message_identifier = 'message-identifier'; $parcels = ['to' => 'john@example.com'];
- Message identifier is used to identify the message. Grab this from your Pigeon dashboard.
- Parcels array accepts
to,cc,bccanddata.
Deliver
$pigeon->deliver($message_identifier, $parcels);
Parcel sample (Single recipient)
$parcels = [ 'to' => 'John Doe <john@example.com>', 'cc' => [ 'admin@example.com', 'Sales Team <sales@example.com>' ], 'data' => [ // template variables are added here 'name' => 'John' ], 'attachments' => [ // `file` can be local file path, remote URL or a file pointer resource [ 'file' => '/path/to/image.png', 'name' => 'Logo' ], [ 'file' => 'https://example.com/guide.pdf', 'name' => 'Guide' ] ] ];
Parcel sample (Multiple recipients)
$parcels = [ [ 'to' => 'John Doe <john@example.com>', 'data' => [ // template variables are added here 'name' => 'John' ] ], [ 'to' => 'Jane Doe <jane@example.com>', 'data' => [ // template variables are added here 'name' => 'Jane' ] ], ];
Framework integration
Contributing
You can contribute in one of two ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The composer package is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Pigeon project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
pigeon/pigeon 适用场景与选型建议
pigeon/pigeon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 01 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「sms」 「push notification」 「pigeon」 「pigeonapp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pigeon/pigeon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pigeon/pigeon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pigeon/pigeon 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Apple Push Notification & Feedback Provider
SDK for payment gateway PlatbaMobilom.sk for PHP7.0
Laravel package to send push notifications to mobile devices (apns, gcm)
Extensible library for building notifications and sending them via different delivery channels.
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
yii2-sms expand
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-26