kuantiko/ci4-dummy-mailer
Composer 安装命令:
composer require kuantiko/ci4-dummy-mailer
包简介
Provides a dummy protocol to the Email library for development — simulates sending without delivering
README 文档
README
Provides a dummy protocol to CodeIgniter 4's Email library for development — simulates sending without delivering any email.
Installation
composer require --dev kuantiko/ci4-dummy-mailer
CI4 4.4+ auto-discovers the package via Composer PSR-4. No manual registration needed.
Usage
Set the protocol in your .env file:
email.protocol = dummy
Any call to service('email')->send() will return true without sending. Useful for local development and CI pipelines where outgoing email must be suppressed.
How it works
DummyMailer extends CodeIgniter\Email\Email— full CI4 Email API is available- Overrides
send()to returntrueimmediately - A
Services.phpoverride routesprotocol=dummytoDummyMailervia CI4's service factory - Activate per environment via
.env— no code changes needed
Requirements
- PHP 8.2+
- CodeIgniter 4.4+
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-18