fastglass/sendgrid
Composer 安装命令:
composer require fastglass/sendgrid
包简介
This library allows you to send emails through SendGrid using PHP and Guzzle 6.x.
README 文档
README
This is a version of SendGrid-PHP which uses Guzzle 6.x
This library allows you to quickly and easily send emails through SendGrid using PHP with the help of Guzzle 6.x. Guzzle is a very popular HTTP client for PHP used in many other PHP packages.
SendGrid has chosen to write their own PHP HTTP client. This module uses Guzzle instead. From the point that SendGrid choose to provide their own HTTP client library, this module was permanently forked away from the official code and is maintained independently of the official libraries. This module uses Guzzle for the transport layer and so the code is different. Contributions to help maintain this library is welcome!
Mainly, this API is maintained in support of the Drupal Sendgrid Integration Module that I also maintain. Drupal 8 ships with Guzzle 6.x in the core of the software and Guzzle 6.x supports the standardization of PSR messages. The official Sendgrid PHP API supports only the deprecated Guzzle 3.x as they are maintaining support for PHP 5.3.
To install this library it is best to use composer. I have published a package through Packagist for this library. Use the following in your composer.json:
"require": { "fastglass/sendgrid": ">=2.0.0" }
Code Examples
Refer to the examples' folder to examine how to use this library. The examples
make use of environment variables for the API key. Export your API stored in
an environment variable named SENDGRID_API_KEY.
Running Tests
The existing tests in the Tests directory can be run
using PHPUnit with the
following command:
composer update composer install ./vendor/bin/phpunit ./Tests
or if you already have PHPUnit installed globally.
cd Tests
phpunit
fastglass/sendgrid 适用场景与选型建议
fastglass/sendgrid 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.94M 次下载、GitHub Stars 达 21, 最近一次更新时间为 2015 年 10 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「send」 「grid」 「sendgrid」 「twilio sendgrid」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fastglass/sendgrid 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fastglass/sendgrid 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fastglass/sendgrid 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.
Plug-ins for DataTables
TYPO3 extension providing content elements powered by gridelements and bootstrap. Available elements: container, columns, tabs, accordion, tile unit and card.
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.
统计信息
- 总下载量: 3.94M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-29