eldadfux/mailgun-lite
Composer 安装命令:
composer create-project eldadfux/mailgun-lite
包简介
A lite and minimalistic PHP client library for sending mails using Mailgun API.
README 文档
README
Mailgun PHP Lite is a lite and minimalistic PHP client library for sending mails using Mailgun API with no external dependencies. This library was created to provide a very simple curl abstraction for sending mails using the Mailgun HTTP API. This is an alternative to those who need to just send simple mails and think the original PHP Client is to heavy for them and have a to much dependencies.
Installation
composer require 'eldadfux/mailgun-lite:1.3.*'
Example
$apiKey = 'your-api-key-here'; $apiDomain = 'your-api-sending-domain-here'; $mailgun = new \MailgunLite\MailgunLite($apiKey, $apiDomain); $mailgun ->setFrom('team@example.com', 'Team Example') ->setReplyTo('this@gmail.com') // (optional) ->setSchedule(strtotime('next Thursday')) // unix time stamp (optional) ->addRecipient('user1@example.com', 'User 1 Name') ->addRecipient('user2@example.com', 'User 2 Name') ->addRecipient('user3@example.com', 'User 3 Name') ->setSubject('Hello World') ->setText('I am a string') ->setHTML('<b>I am a string</b>') ; // Send Mail if(!$mailgun->send()) { throw new Exception('Problem sending mail: ' . $mailgun->getError()); } // Subscribe to newsletter $mailgun->subscribe('newsletter@example.com', 'user1@example.com');
Contributing
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send us a pull request.
Versioning
For transparency and insight into our release cycle, and for striving to maintain backward compatibility, This project will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:
<major>.<minor>.<patch>
For more information on SemVer, please visit http://semver.org/.
Requirements
PHP 7+
We recommend using the latest PHP version whenever possible.
Author
Eldad A. Fux
License
This project is licensed under the MIT License - see the LICENSE file for details
eldadfux/mailgun-lite 适用场景与选型建议
eldadfux/mailgun-lite 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.38k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2018 年 12 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「Simple」 「mailgun」 「lite」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 eldadfux/mailgun-lite 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eldadfux/mailgun-lite 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 eldadfux/mailgun-lite 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Send emails from multiple domains with mailgun
Mailgun integration for SilverStripe emails
A simple library for make Lexer and Parsers to build a language
A simple library that allows transform any kind of data to native php data or whatever
A simple library that uses the hydration pattern to fill objects given different sources of data.
Micro Active Record library in PHP, support chain calls, events, and relations.
统计信息
- 总下载量: 4.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-21