k3progetti / mercure-bridge-bundle
Symfony bundle per gestire notifiche Mercure personalizzate
Package info
github.com/K3Progetti/mercure-bridge-bundle
Type:symfony-bundle
pkg:composer/k3progetti/mercure-bridge-bundle
2.0.1
2026-03-22 19:39 UTC
Requires
- php: >=8.4
- firebase/php-jwt: *
- symfony/framework-bundle: ^8.0
- symfony/mercure-bundle: ^v0.4.2
- symfony/mercure-notifier: ~8.0
- symfony/serializer: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Bundle Symfony per gestire notifiche in tempo reale tramite Mercure.
๐ฆ Installazione
Se usi questo bundle come pacchetto locale:
composer require k3progetti/mercure-bridge-bundle
โ๏ธ Configurazione
Nel tuo config/bundles.php aggiungi:
return [ App\Bundle\MercureBridge\MercureBridgeBundle::class => ['all' => true], ];
๐ ๏ธ Servizi inclusi
SendNotification: servizio per inviare notifiche MercureNotificationMessageFactory: helper per creare il payload del messaggioJwtEventSubscriber: listener che intercetta eventi JWT e invia aggiornamenti
๐ Struttura del bundle
MercureBridge/
โโโ composer.json
โโโ README.md
โโโ src/
โ โโโ MercureBridgeBundle.php
โ โโโ Enum/
โ โโโ EventSubscriber/
โ โโโ Service/
โ โโโ DependencyInjection/
โ โโโ Configuration.php
โ โโโ MercureBridgeExtension.php
โ โโโ Resources/config/services.yaml
๐งช Requisiti
- PHP >= 8.2
- Symfony >= 7.0
symfony/mercure-bundle
๐ง Registrazione automatica dei servizi
Nel bundle รจ giร presente un file services.yaml che carica tutti i servizi con:
services: App\Bundle\MercureBridge\: resource: '../../src/*' exclude: - '../../src/DependencyInjection/' - '../../src/MercureBridgeBundle.php' autowire: true autoconfigure: true public: false
๐ฅ Contribuire
Sentitevi liberi di proporre migliorie