Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mercure Laravel Package

symfony/mercure

Symfony Mercure is a real-time push communication hub implementing the Mercure protocol. Publish updates from your app and let browsers and services subscribe via Server-Sent Events, with JWT-based authorization, private topics, and scalable deployment options.

View on GitHub
Deep Wiki
Context7
v0.7.2

0.7.2

  • Revert lazy-loading the Twig extension to fix compatibility with Symfony 6.4
v0.7.1
  • Compatibility with PHP 8.5
v0.7.0
  • Add support for FrankenPHP's mercure_publish() function
  • Compatibility with Symfony 8
  • Lazy-load the Twig extension
  • Drop support for unmaintained PHP and Symfony versions
v0.6.5

What's Changed

New Contributors

Full Changelog: https://github.com/symfony/mercure/compare/v0.6.4...v0.6.5

v0.6.4
  • Allow symfony/deprecation-contracts v4
v0.6.3
  • Compatibility with lcobucci/jwt 5.0
v0.6.2
  • Always set the Content-Type HTTP header to application/x-www-form-urlencoded when sending an update to the hub
  • Symfony\Component\Mercure\Messenger\UpdateHandler now returns the ID of the published update
  • Allow passing null as $subscribe and $publish parameters in Symfony\Component\Mercure\Jwt\TokenFactoryInterface
  • Add a new optional parameter in Symfony\Component\Mercure\Authorization::__construct() to set the SameSite cookie attribute
v0.6.1
  • Allow passing additional data to the mercure JWT claim when using Symfony\Component\Mercure\Token\LcobucciFactory
  • Add a new passphrase argument to Symfony\Component\Mercure\Token\LcobucciFactory allowing the use of encrypted keys
  • Add a new lastEventId option to the mercure() Twig function to set the Last-Event-ID query parameter
  • Fix a bug preventing setting cookies for legit subdomains when using Symfony\Component\Mercure\Authorization::createCookie()
  • Fix bug in Symfony\Component\Mercure\Token\LcobucciFactory that results in a runtime error when using "ecdsa" algorithms, alongside "lcobucci/jwt:^4.0"
v0.6.0
  • Add mercure() Twig function to generate URLs of the hubs and set the authorization cookies
  • Add Authorization::setCookie() to ease setting authorization cookies
  • Add Authorization::clearCookie() to remove the mercureAuthorization cookie from the browser
  • Fix the domain check in Authorization::createCookie() to allow subdomains
  • Compatibility with Symfony 6 and Symfony Contracts 3
v0.5.3
  • Full compatibility with PHP 7.1+
v0.5.2
  • Set a default expiration for the JWT and the cookie when using the Authorization class
v0.5.1
  • fix MockHub::__construct() signature
v0.5.0
  • added Symfony\Component\Mercure\Jwt\TokenProviderInterface
  • added Symfony\Component\Mercure\Jwt\TokenFactoryInterface
  • added Symfony\Component\Mercure\Jwt\StaticTokenProvider
  • added Symfony\Component\Mercure\Jwt\CallabkeTokenProvider
  • added Symfony\Component\Mercure\Jwt\LcobucciTokenFactory
  • added Symfony\Component\Mercure\Jwt\FactoryTokenProvider
  • added Symfony\Component\Mercure\Messenger\UpdateHandler
  • added Symfony\Component\Mercure\Hub
  • added Symfony\Component\Mercure\HubInterface
  • added Symfony\Component\Mercure\HubRegistry
  • added Symfony\Component\Mercure\Discovery
  • added Symfony\Component\Mercure\Authorization
  • deprecated Jwt\StaticJwtProvider, use Jwt\StaticTokenProvider instead.
  • deprecated PublisherInterface interface in favor of HubInterface.
  • deprecated Publisher class in favor of Hub.
  • deprecated Debug\TraceablePublisher class in favor of Debug\TraceableHub.
v0.4.1
  • Compatibility with PHP 8
v0.4.0
  • Compatibility with Mercure 0.10
v0.3.0
  • Compatibility with Symfony 5
  • Add TraceablePublisher to collect debug information
  • Add PublisherInterface
  • Fix an error when using the retry parameter
v0.2.0
  • Use the Symfony HttpClient component
v0.1.0

Initial release

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
yandex/translate-api
voku/simple_html_dom
league/flysystem-vfs
bkwld/upchuck
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php