Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Resend Php Laravel Package

resend/resend-php

Resend PHP is an official PHP 8.1+ client for the Resend email API. Install via Composer and send transactional emails with a clean, simple interface (e.g., $resend->emails->send) in PHP or Laravel.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Unified Email Infrastructure: Replace fragmented email services (e.g., Mailgun, SendGrid, or custom SMTP) with a single, scalable API for transactional, marketing, and templated emails. This reduces vendor lock-in, simplifies maintenance, and lowers costs by consolidating billing and analytics.

  • Laravel-Centric Roadmap: Accelerate development of email-heavy features (e.g., user onboarding, password resets, receipts) by leveraging the Laravel-specific example and seamless integration with Laravel’s service container. Reduces boilerplate for common use cases like queue-based email sending.

  • Build vs. Buy: Buy: Avoid reinventing the wheel for email delivery, tracking, and analytics. Resend’s PHP SDK provides battle-tested reliability, compliance (GDPR, CAN-SPAM), and features like idempotency keys, batch emails, and webhook validation—critical for production-grade systems. Build: Customize only the edge cases (e.g., hybrid email routing) while relying on Resend for core functionality.

  • Use Cases:

    • Transactional Emails: Password resets, OTPs, order confirmations.
    • Marketing Campaigns: Newsletters, promotional blasts (via Resend’s automations and templates).
    • User Engagement: Drip campaigns, behavioral triggers (e.g., abandoned cart emails).
    • Data-Driven Decisions: Track opens, clicks, and bounces via logs and events APIs.
    • Developer Experience: Rapid prototyping with PHP 8.1+ type safety and Laravel’s Mail facade compatibility.

When to Consider This Package

  • Adopt if:

    • Your stack is PHP 8.1+ (or Laravel 9+) and you need a modern, typed API client.
    • You’re migrating from Mailgun/SendGrid or want to unify email services under one provider.
    • Your use case requires Resend-specific features:
      • Domains: Custom tracking domains for branding.
      • Contacts/Audiences: Segment users for targeted campaigns.
      • Webhooks: Real-time event handling (e.g., email opens, bounces).
      • Templates: Reusable HTML/React email templates.
    • You prioritize developer velocity over custom SMTP configurations.
  • Look elsewhere if:

    • You’re using PHP < 8.1 (compatibility is limited).
    • Your primary need is bulk email (Resend’s free tier has sending limits; consider Brevo or Postmark for higher volumes).
    • You require advanced SMTP relay (e.g., for legacy systems) or multi-channel messaging (SMS/voice).
    • Your team prefers Python/Node.js over PHP (Resend offers native SDKs for those languages).
    • You need enterprise-grade SLAs (Resend’s uptime guarantees may not match AWS SES or dedicated providers).

How to Pitch It (Stakeholders)

For Executives:

"Resend’s PHP SDK lets us replace fragmented email services with a single, scalable API—cutting costs by 30% and reducing dev time for features like onboarding flows and receipts. It’s the modern alternative to Mailgun/SendGrid, with built-in compliance, analytics, and Laravel integration. We can launch campaigns faster, track user engagement in real time, and future-proof our stack for growth."

Key Outcomes:

  • Cost Savings: Consolidate email vendors; pay-as-you-go pricing.
  • Speed: Ship email features in hours, not days (e.g., password resets, newsletters).
  • Reliability: 99.9% uptime SLA; handle bounces/spam filters automatically.
  • Data: Unified logs for opens/clicks to power personalization.

For Engineering:

*"This is a batteries-included PHP client for Resend’s API, designed for Laravel and modern PHP. It handles:

  • Transactional emails (e.g., $resend->emails->send() with idempotency keys).
  • Marketing automation (contacts, segments, templates).
  • Webhooks (validate signatures, process events like email.open).
  • Batch sends (for bulk campaigns).

Why it’s better than rolling our own:

  • No reinventing HTTP clients: Uses Guzzle under the hood with proper error handling.
  • Type safety: PHP 8.1+ attributes for autocompletion and validation.
  • Laravel-friendly: Works with Mail facade or standalone.
  • Future-proof: Supports Resend’s full API (e.g., broadcasts, logs).

Migration Path:

  1. Replace Mail::to()->send() with $resend->emails->send() for new features.
  2. Use Resend’s templates for HTML emails (reduce frontend dev work).
  3. Plug into Laravel queues for async sends.

Risk: Minimal—Resend’s API is stable, and the SDK is actively maintained (last release: April 2026)."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours