resend / resend-php
Resend PHP library.
Installs: 691 838
Dependents: 10
Suggesters: 5
Security: 0
Stars: 35
Watchers: 2
Forks: 2
Open Issues: 4
Requires
- php: ^8.1.0
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- mockery/mockery: ^1.6
- pestphp/pest: ^2.0
This package is auto-updated.
Last update: 2024-12-19 19:26:13 UTC
README
Examples
Send email with:
Getting started
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.