finds.dev

sendgrid/sendgrid-php

The Official Twilio SendGrid PHP API Library

View on GitHubHomepage ↗

★ 1,519PHPMITupdated Oct 2026

// the take

The official PHP client for SendGrid's v3 Web API, covering transactional email sending plus the full management API (suppressions, stats, templates, subusers, IP pools). It's for PHP apps that need transactional email with fine-grained control over personalization, tracking, and webhook verification rather than a thin send-only wrapper.

The mail-building API is strongly typed (Mail, Personalization, Attachment, TrackingSettings as real classes) instead of nested associative arrays, so malformed payloads get caught before they hit the API. The generic `$sg->client->_('path')` fallback means any endpoint not yet wrapped in a helper is still reachable without waiting on a library release. The EventWebhook helper does proper ECDSA signature verification for webhook payloads, which is easy to get wrong if you roll it yourself. Test coverage is unusually thorough — nearly every mail component (Asm, BatchId, Substitution, etc.) has a dedicated unit test.

Minimum PHP version is 7.3, which is EOL and years behind current PHP; there's no indication of PHP 8 feature adoption (enums, readonly properties, attributes) that would simplify this kind of value-object-heavy code. HTTP transport goes through sendgrid/php-http-client wrapping raw cURL — no PSR-18 client support, so you can't swap in Guzzle or add middleware for logging/retries without forking behavior. There's no built-in retry or backoff for rate limiting; a 429 from SendGrid is just an exception you have to catch and handle yourself. Building even a simple email requires instantiating several objects (From, To, Content) rather than a flat array or builder shorthand, which is more ceremony than competing libraries like Symfony Mailer.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,519
Forks
608
Language
PHP
License
MIT
Last commit
29 Oct 2026

// nearby

If sendgrid-php isn't quite it.

All repos →