PHP Package: symfony/mercure

Symfony Mercure is a PHP library for handling real-time updates using the Mercure protocol. It integrates seamlessly with Symfony applications, providing a simple and efficient way to push real-time data to clients.

Current Version: 0.6.5
Last Updated: 2024-04-08
PHP Requirement: >=7.1.3
Dependencies:
symfony/http-client
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Symfony Mercure is a powerful PHP library designed to facilitate server-sent events and real-time messaging within Symfony applications. It offers a robust and efficient solution for updating clients in real-time, enhancing user experience and application responsiveness. With Mercure, developers can easily implement push notifications, live updates, and real-time communication.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 0.6.5

Download Download v0.6.5

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/mercure/0.6.5/loader.php';
require_once 'libs/symfony/http-client/7.3.0/loader.php';

use Symfony\Component\Mercure\Hub;

$obj = new Hub();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.