icanboogie/bind-mailer
Composer 安装命令:
composer require icanboogie/bind-mailer
包简介
Binds icanboogie/prototype to ICanBoogie.
关键字:
README 文档
README
The icanboogie/bind-mailer package binds icanboogie/mailer to ICanBoogie,
using its Autoconfig feature. It provides a configuration synthesizer for
the mailer config and prototype bindings for the Core instance.
<?php namespace ICanBoogie; require 'vendor/autoload.php'; $app = boot(); $config = $app->configs['mailer']; // obtain the "mailer" config. $config['deliverer']; // class name or callable to create the deliverer instance. $config['mailer']; // class name or callable to create the mailer instance. $app->mailer; //instance of ICanBoogie\Mailer\Mailer; $app->mail([ 'to' => "example@example.com", 'from' => "me@example.com", 'subject' => "Testing", 'body' => "Hello world!" ], $options = []);
Before and after the message is sent
If sender is defined in the mail() options the following events are triggered:
-
The
<class>:mail:beforeevent of class BeforeMailEvent is fired before the message is sent by the mailer. Third parties may use this event to alter the message or the mailer that will be used to send it. -
The
<class>:mailevent of class MailEvent is fired after the message was sent by the mailer. Third parties may use this event to alter the result returned by the mailer.
Where <class> is the class of the sender.
Requirements
The package requires PHP 5.5 or later.
Installation
The recommended way to install this package is through Composer:
$ composer require icanboogie/bind-mailer
The package only specifies a minimum version while requiring icanboogie/icanboogie and [icanboogie/prototype], you might want to specify which version to use in your "composer.json" file.
Cloning the repository
The package is available on GitHub, its repository can be cloned with the following command line:
$ git clone https://github.com/ICanBoogie/bind-mailer.git
Documentation
The package is documented as part of the ICanBoogie framework
documentation. You can generate the documentation for the package
and its dependencies with the make doc command. The documentation is generated in the
build/docs directory. ApiGen is required. The directory can later be
cleaned with the make clean command.
Testing
The test suite is ran with the make test command. PHPUnit and
Composer need to be globally available to run the suite. The command
installs dependencies as required. The make test-coverage command runs test suite and also
creates an HTML coverage report in "build/coverage". The directory can later be cleaned with
the make clean command.
The package is continuously tested by Travis CI.
License
icanboogie/bind-mailer is licensed under the New BSD License - See the LICENSE file for details.
icanboogie/bind-mailer 适用场景与选型建议
icanboogie/bind-mailer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 08 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mailer」 「icanboogie」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 icanboogie/bind-mailer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 icanboogie/bind-mailer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 icanboogie/bind-mailer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Binds icanboogie/routing to ICanBoogie.
Binds icanboogie/event to ICanBoogie
Creates new sare mail transport for laravel applications
Binds icanboogie/prototype to ICanBoogie.
Mandrill Api Integration for Yii2
Build and send emails.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-08-23