Coder Social home page Coder Social logo

resend-php's People

Contributors

jayanratna avatar renovate[bot] avatar zenorocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

resend-php's Issues

Write PHP integration docs for Resend

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:

  • Prerequisites (Create an API key).
  • Install using Composer.
  • Send email using plain text.
  • Send email using HTML.
  • Example of using Resend with PHP.

How to send image attachment?

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

feat: Add a fluent interface

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);

Dependency Dashboard

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.

Detected dependencies

composer
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-actions
.github/workflows/tests.yml
  • actions/checkout v4
  • shivammathur/setup-php v2
  • actions/cache v4
  • ubuntu 22.04

  • Check this box to trigger a request for Renovate to run again on this repository

Deprecate sendEmail method

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.