PHPackages                             bzrk/http-feeds-server - 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. bzrk/http-feeds-server

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

bzrk/http-feeds-server
======================

This project is a PHP Implementation of \[HTTP Feeds\] (https://github.com/http-feeds/http-feeds).

0.6(4y ago)13MITPHPPHP &gt;=8

Since Feb 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bzrk/http-feeds-server)[ Packagist](https://packagist.org/packages/bzrk/http-feeds-server)[ RSS](/packages/bzrk-http-feeds-server/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

HTTP Feeds Server
=================

[](#http-feeds-server)

This project is a PHP Implementation of \[HTTP Feeds\] ().

HTTP Feeds
----------

[](#http-feeds)

> Asynchronous event streaming and data replication with plain HTTP APIs.
>
> HTTP feeds is a minimal specification for polling events over HTTP:
>
> - An HTTP feed provides a HTTP GET endpoint
> - that returns a chronological sequence (!) of events
> - serialized in [CloudEvents](https://github.com/cloudevents/spec) event format
> - in batched responses using the media type `application/cloudevents-batch+json`
> - and respects the `lastEventId` query parameter to scroll through further items
> - to support [infinite polling](#polling) for real-time feed subscriptions.
>
> HTTP feeds can be used to [decouple systems](https://scs-architecture.org) asynchronously [without message brokers](https://www.innoq.com/en/articles/2021/12/http-feeds-schnittstellen-ohne-kafka-oder-rabbitmq), such as Kafka or RabbitMQ.

Install
-------

[](#install)

`composer require bzrk/http-feeds-server`

Usage with [Slim](https://github.com/slimphp/Slim)
--------------------------------------------------

[](#usage-with-slim)

```
...
class Repo implements Repository {

    public function getByIdGreaterThan(string $lastEventId, int $limit): FeedItemCollection
    {
        ....
    }
}

$fetcher = HttpFeedsFetcher::builder(new Repo())->limit(10)->build();

$app = AppFactory::create();
$app->get('/', new HttpFeedsController($fetcher));
$app->addErrorMiddleware(true, true, true);
$app->run();
```

Usage with [ReactPHP](https://reactphp.org/http/)
-------------------------------------------------

[](#usage-with-reactphp)

```
...
class Repo implements Repository {

    public function getByIdGreaterThan(string $lastEventId, int $limit): FeedItemCollection
    {
        ....
    }
}

$fetcher = HttpFeedsFetcher::builder(new Repo())->limit(10)->build();

$http = new React\Http\HttpServer(new HttpFeedsController($fetcher));
$socket = new React\Socket\SocketServer('0.0.0.0:8080');
$http->listen($socket);
```

Parameters
----------

[](#parameters)

NameTypeDescriptionlastEventIdStringlast processing eventid from clienttimeoutIntegerenable long polling with specified timeout in secondsExamples
--------

[](#examples)

**Polling**

**LongPolling**

[http://server.com/inventory?lastEvenetId=1223&amp;timeout=5](http://server.com/inventory?lastEvenetId=1223&timeout=5)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

Every ~0 days

Total

2

Last Release

1547d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/445ce1a0aac262330f9ea50db89f69de168758ca03040646429cd862e251dfb1?d=identicon)[bzrk](/maintainers/bzrk)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bzrk-http-feeds-server/health.svg)

```
[![Health](https://phpackages.com/badges/bzrk-http-feeds-server/health.svg)](https://phpackages.com/packages/bzrk-http-feeds-server)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[phrity/websocket

WebSocket client and server

2184.1M27](/packages/phrity-websocket)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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