resend/resend-php
Official Resend PHP SDK (PHP 8.1+) for sending emails via the Resend API. Install with Composer, create a client with your API key, and send emails with a simple emails->send() call. Inspired by openai-php.
Send email with:
Requires PHP 8.1+
First, install Resend via the Composer package manager:
composer require resend/resend-php
Then, interact with Resend's API:
$resend = Resend::client('re_123456789');
$resend->emails->send([
'from' => 'onboarding@resend.dev',
'to' => 'user@gmail.com',
'subject' => 'hello world',
'text' => 'it works!',
]);
Note This client is inspired by OpenAI PHP.
How can I help you explore Laravel packages today?