PHPackages                             skitlabs/bayeux-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. skitlabs/bayeux-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

skitlabs/bayeux-client
======================

13.5k↑86.7%[1 issues](https://github.com/skitlabs/bayeux-client/issues)PHP

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/skitlabs/bayeux-client)[ Packagist](https://packagist.org/packages/skitlabs/bayeux-client)[ RSS](/packages/skitlabs-bayeux-client/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Bayeux Client
=============

[](#bayeux-client)

This package provides a limited [Bayeux](https://docs.cometd.org/current7/reference/#_bayeux) client. Subscribe to any number of channels, wait for messages, dispatch a callback, rinse and repeat.

Installation
------------

[](#installation)

This package is installed through composer;

```
$  composer install skitlabs/bayeux-client
```

### Requirements

[](#requirements)

- PHP 8.1
- Compatible HTTP-client (`guzzlehttp/guzzle: ^7.4` or `illuminate/http: ^9.8`)

Usage
-----

[](#usage)

1. Create a client by setting up a (HTTP) transport, and an Authentication provider.
2. Subscribe to any number of channels
3. Call start, and wait for the messages to roll in

```
