PHPackages                             jdecool/mercure - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. jdecool/mercure

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

jdecool/mercure
===============

Fork of the official symfony/mercure component using HTTPlug client.

0.1.0(5y ago)06MITPHPPHP &gt;=7.3

Since Dec 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jdecool/php-mercure)[ Packagist](https://packagist.org/packages/jdecool/mercure)[ RSS](/packages/jdecool-mercure/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Mercure PHP component for HTTPlug
=================================

[](#mercure-php-component-for-httplug)

[![Build Status](https://github.com/jdecool/php-mercure/workflows/Continuous%20Integration/badge.svg)](https://github.com/jdecool/php-mercure/actions?query=workflow%3A%22Continuous+Integration%22)[![Latest Stable Version](https://camo.githubusercontent.com/6e071192208b2925f82bf3cd9ea62a33d6d6622fcdeb1996f2a8a751a173a296/68747470733a2f2f706f7365722e707567782e6f72672f6a6465636f6f6c2f6d6572637572652f762f737461626c652e706e67)](https://packagist.org/packages/jdecool/mercure)

This is a fork of the official [`symfony/mercure`](https://github.com/symfony/mercure) component using `HTTPlug` client.

Thanks to [Kévin Dunglas](https://github.com/dunglas/) for his incredible work on [Mercure.rocks](Mercure.rocks). Thanks to all Symfony &amp; Mercure contributors.

> Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients in a convenient, fast, reliable and battery-efficient way. It is especially useful to publish real-time updates of resources served through web APIs, to reactive web and mobile apps.

This component implements the "publisher" part of [the Mercure Protocol](https://mercure.rocks).

Install it
----------

[](#install-it)

Install using [composer](https://getcomposer.org), you need to install a [PSR-18](https://www.php-fig.org/psr/psr-18/) compliant HTTP client.

Example using Guzzle:

```
composer require jdecool/mercure guzzlehttp/guzzle http-interop/http-factory-guzzle
```

Getting started
---------------

[](#getting-started)

```
// change these values accordingly to your hub installation
define('HUB_URL', 'https://demo.mercure.rocks/.well-known/mercure');
define('JWT', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyJmb28iLCJiYXIiXSwicHVibGlzaCI6WyJmb28iXX19.LRLvirgONK13JgacQ_VbcjySbVhkSmHy3IznH3tA9PM');

use JDecool\Mercure\Jwt\StaticJwtProvider;
use JDecool\Mercure\PublisherFactory;
use JDecool\Mercure\Update;

$factory = new PublisherFactory();
$publisher = $factory->create(HUB_URL, new StaticJwtProvider(JWT));
$response = $publisher(new Update('https://example.com/books/1.jsonld', 'Hi from Symfony!'));
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1983d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a648f4457ad94c2fc48782bded875f3bf051b480fd2fe01eb7654b9fab180e5e?d=identicon)[jdecool](/maintainers/jdecool)

---

Top Contributors

[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (11 commits)")

---

Tags

pushhttplugupdatesssemercure

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jdecool-mercure/health.svg)

```
[![Health](https://phpackages.com/badges/jdecool-mercure/health.svg)](https://phpackages.com/packages/jdecool-mercure)
```

###  Alternatives

[symfony/mercure-bundle

Symfony MercureBundle

30813.5M53](/packages/symfony-mercure-bundle)[php-http/client-common

Common HTTP Client implementations and tools for HTTPlug

1.0k225.5M571](/packages/php-http-client-common)[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.0M54](/packages/php-http-httplug-bundle)[symfony/mercure

Symfony Mercure Component

43915.1M28](/packages/symfony-mercure)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
