symfony / novu-notifier
Provides Novu integration for Symfony Notifier.
Package info
github.com/symfony/novu-notifier
Type:symfony-notifier-bridge
pkg:composer/symfony/novu-notifier
v8.1.0
2026-05-29 05:06 UTC
Requires
- php: >=8.4.1
- symfony/http-client: ^7.4|^8.0
- symfony/notifier: ^7.4|^8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 8.2.x-dev
- 8.1.x-dev
- v8.1.0
- v8.1.0-BETA1
- 8.0.x-dev
- v8.0.4
- v8.0.0
- v8.0.0-RC1
- v8.0.0-BETA1
- 7.4.x-dev
- v7.4.4
- v7.4.0
- v7.4.0-RC1
- v7.4.0-BETA1
- 7.3.x-dev
- v7.3.10
- v7.3.0
- v7.3.0-RC1
- v7.3.0-BETA1
- 7.2.x-dev
- v7.2.0
- v7.2.0-RC1
- v7.2.0-BETA1
- 7.1.x-dev
- v7.1.6
- v7.1.1
- v7.1.0
- v7.1.0-RC1
- v7.1.0-BETA1
- 7.0.x-dev
- v7.0.8
- v7.0.7
- v7.0.3
- v7.0.0
- v7.0.0-RC1
- v7.0.0-BETA1
- 6.4.x-dev
- v6.4.32
- v6.4.24
- v6.4.21
- v6.4.13
- v6.4.12
- v6.4.8
- v6.4.7
- v6.4.3
- v6.4.0
- v6.4.0-RC1
- v6.4.0-BETA1
This package is auto-updated.
Last update: 2026-09-02 05:52:03 UTC
README
Provides Novu integration for Symfony Notifier.
DSN example
NOVU_DSN=novu://API_KEY@default
Notification example
class NovuNotification extends Notification implements PushNotificationInterface { /** @var array<string, mixed> */ private array $overrides = []; /** @var array<string, mixed> */ private array $context = []; /** * @param array<string, mixed> $overrides */ public function setOverrides(array $overrides): void { $this->overrides = $overrides; } /** * @param array<string, mixed> $context */ public function setContext(array $context): void { $this->context = $context; } public function asPushMessage( NovuSubscriberRecipient|RecipientInterface $recipient, ?string $transport = null, ): ?PushMessage { return new PushMessage( $this->getSubject(), $this->getContent(), new NovuOptions( $recipient->getSubscriberId(), $recipient->getFirstName(), $recipient->getLastName(), $recipient->getEmail(), $recipient->getPhone(), $recipient->getAvatar(), $recipient->getLocale(), $this->overrides, [], $this->context, ), ); } }
$notification = new NovuNotification; $notification->subject('test'); $notification->channels(['push']); $notification->content( json_encode( [ 'param1' => 'Lorum Ipsum', ] ) ); $notification->setOverrides([ 'email' => [ 'from' => 'no-reply@toppy.nl', 'senderName' => 'No-Reply', ], ]); $notification->setContext([ 'tenant' => 'tenant-id', 'app' => 'app-id', ]); $this->notifier->send( $notification, new NovuSubscriberRecipient( "123", 'Wouter', 'van der Loop', 'woutervdl@toppy.nl', null, null, null, ), );
Sponsor
This package is looking for a backer.
Help Symfony by sponsoring its development!