xelax90/zf-mail-config
最新稳定版本:2.0.1
Composer 安装命令:
composer require xelax90/zf-mail-config
包简介
Simple module providing transport configuration in config files
README 文档
README
This module provides a simple factory for mail transports that reads the configuration from the application config.
Installation
Installation of XelaxMailConfig uses composer. For composer documentation, please refer to getcomposer.org.
composer require xelax90/zf-mail-config
Then add XelaxUserNotification to your config/application.config.php.
Now copy the provided configuration files vendor/xelax90/zf-mail-config/config/xelax-mail-config.global.php and vendor/xelax90/zf-mail-config/config/xelax-mail-config.local.php.dist into your config/autoload directory. Also make another copy of the xelax-mail-config.local.php.dist file without the .dist extension.
Configuration
For configuration of the transport please refer to the zend-mail documentation. The provided configuration is directly passed to the Zend\Mail\Transport\Factory factory.
Retrieving a TransportInterface instance
This module registers a factory for the Zend\Mail\Transport\TransportInterface class. To retrieve an instance from the service manager simply call
$transport = $container->get(Zend\Mail\Transport\TransportInterface::class);
统计信息
- 总下载量: 18.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04