Download the PHP package xsga/bbphp-emailsender-resend-adapter without Composer
On this page you can find all versions of the php package xsga/bbphp-emailsender-resend-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bbphp-emailsender-resend-adapter
BBPHP Email Sender Resend Adapter
This package provides a Resend implementation of the email sending contract defined by the BBPHP Email Sender core library. It allows applications to send transactional or notification emails through Resend without depending on provider-specific logic in the business layer.
Overview
The project exposes a concrete adapter named ResendEmailService, which implements the SendEmailService interface from xsga/bbphp-emailsender-core.
The adapter:
- sends emails through the Resend API
- accepts a standard
EmailDataDtoobject - logs success and failure events through PSR-3 logging
- throws a domain-level
SendEmailExceptionwhen the sending process fails
Requirements
- PHP 8.4 or newer
- Composer
- A valid Resend API key
- The core package
xsga/bbphp-emailsender-core
Installation
Usage
Email payload
The adapter builds the Resend payload using the fields required by the core DTO:
sendersenderNamerecipientssubjectbody
The message is sent as an HTML email using the Resend emails->send() call.
Error handling
If Resend returns a non-success status code or an exception is thrown during the request, the adapter logs the failure and raises SendEmailException so the calling code can handle it consistently.
License
This project is licensed under the MIT License.
Author
Parker
Repository
- GitHub: https://github.com/xsga/BBPHP-EmailSender-Resend-Adapter
- Composer package:
xsga/bbphp-emailsender-resend-adapter
All versions of bbphp-emailsender-resend-adapter with dependencies
psr/log Version ^3.0
resend/resend-php Version ^1.1
xsga/bbphp-emailsender-core Version ^1.0