waaseyaa / mail
Transport-agnostic mail API for Waaseyaa
v0.1.0-alpha.218
2026-06-16 01:58 UTC
Requires
- php: >=8.5
- waaseyaa/foundation: ^0.1.0-alpha.218
Requires (Dev)
- phpunit/phpunit: ^10.5
- twig/twig: ^3.0
Suggests
- sendgrid/sendgrid: Required for SendGrid API transport when using mail.sendgrid_api_key (^8.1)
- twig/twig: Required for TwigMailRenderer template support
This package is auto-updated.
Last update: 2026-06-16 02:03:18 UTC
README
Layer 0 — Foundation
Email delivery abstraction for Waaseyaa applications.
Provides a MailerInterface and Twig-powered TwigMailRenderer for template-based emails. Best-effort side effects (e.g. notification listeners) should wrap mailer calls in try-catch and log failures via LoggerInterface to avoid crashing the primary request.
Key classes: MailerInterface, Envelope, TwigMailRenderer, TransportInterface (local, array, SendGrid).