senderkit/senderkit-symfony

Symfony bundle for the SenderKit PHP SDK — DI wiring, configuration, webhook request verifier.

Maintainers

Package info

github.com/senderkit/senderkit-symfony

Homepage

Type:symfony-bundle

pkg:composer/senderkit/senderkit-symfony

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.0 2026-06-11 23:21 UTC

This package is auto-updated.

Last update: 2026-06-11 23:21:53 UTC


README

Symfony integration for the SenderKit PHP SDK.

Install

composer require senderkit/senderkit-symfony

Register the bundle (Flex does this automatically) and configure config/packages/senderkit.yaml:

senderkit:
    api_key: '%env(SENDERKIT_API_KEY)%'
    webhook_secret: '%env(SENDERKIT_WEBHOOK_SECRET)%'

Usage

Autowire SenderKit\Client into any service or controller:

public function __construct(private readonly \SenderKit\Client $senderkit) {}

$this->senderkit->send(new TemplateSend(template: 'welcome', to: $email));

When symfony/http-client is installed, the SDK automatically uses the framework's PSR-18 client.

Webhooks

use SenderKit\Symfony\Webhook\RequestVerifier;

public function webhook(Request $request, RequestVerifier $verifier): Response
{
    $event = $verifier->verify($request); // throws SignatureVerificationException on bad signature, RuntimeException if unconfigured
    // ...
}

License

MIT