resend / resend-php Goto Github PK
View Code? Open in Web Editor NEWResend's Official PHP SDK
Home Page: https://resend.com/docs/send-with-php
License: MIT License
Resend's Official PHP SDK
Home Page: https://resend.com/docs/send-with-php
License: MIT License
Write the documentation and create examples for integrating the Resend PHP SDK. Once published, these docs will be available at https://resend.com/docs
Things to include:
Trying to send image attachment, setting it as attachments[n].content => file_get_content(file)
but get an error: Error: Malformed UTF-8 characters, possibly incorrectly encoded
To improve the development experience it might be handy to create a fluent interface to easily send emails:
use Resend\Email;
$resend = Resend::client('re_123456789');
$email = (new Email())
->to('...')
->from('...')
->subject('...')
->text('...');
if ($user->is_premium) {
$email->html('...');
}
$resend->sendEmail($email);
As mentioned on Twitter/X to @zenorocha, I think https://github.com/janephp/janephp/ could helps a lot Resend to automatically generate an up to date PHP Client from the OpenAPI specification.
At JoliCode, we already use this to generate a Slack API PHP client. We also use with our clients to generate private API PHP clients based on OpenAPI specification, and update them in a snap.
If such automation is considered, I could open a PR soon with a PoC.
Ensure that if the API response contains the error name rate_limit_exceeded
then an exception is thrown.
Reference: https://github.com/resendlabs/resend-docs/pull/26
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
composer.json
php ^8.1.0
guzzlehttp/guzzle ^7.5
friendsofphp/php-cs-fixer ^3.13
mockery/mockery ^1.6
pestphp/pest ^2.0
.github/workflows/tests.yml
actions/checkout v4
shivammathur/setup-php v2
actions/cache v4
ubuntu 22.04
Deprecate the sendEmail
method on the Client class in favour of a Email
service class. The sendEmail
method will still be available but will become undocumented.
This change is being processed as the emails
API grows beyond just sending emails. You can now retrieve emails as well as create/send emails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.