Skip to main content
senderkit/senderkit-symfony integrates the PHP SDK core with Symfony’s service container and HTTP foundation.

Install

Symfony Flex registers the bundle automatically. If you are not using Flex, add it to config/bundles.php:

Configuration

Create config/packages/senderkit.yaml:
Set the environment variables:
When symfony/http-client is installed, the bundle automatically uses the framework’s PSR-18 HTTP client. Any other PSR-18 client discovered by php-http/discovery works too.

Usage

Autowire SenderKit\Client into any service or controller:
All methods on Client are available — see the PHP SDK core for the full API (sendRaw, sendBatch, context, messages, templates).

Webhooks

Inject SenderKit\Symfony\Webhook\RequestVerifier and call verify():
RequestVerifier::verify() throws:
  • SignatureVerificationException — invalid or expired signature.
  • \RuntimeExceptionwebhook_secret is not configured.
See Webhooks for the full event-type list and payload schema.

PHP SDK core

Client API, error handling, and bare-PHP webhook verifier.

Laravel

Notification channel, mail transport, and webhook middleware.

Webhooks

Event types and payload schema.

Authentication

API keys, scopes, and test vs. live mode.