PHPackages                             nc/faye-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. [HTTP &amp; Networking](/categories/http)
4. /
5. nc/faye-client

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

nc/faye-client
==============

Php client for interacting with faye server

v1.1.1(11y ago)27184.6k↓15.3%23MITPHPPHP &gt;=5.3.0

Since Jul 29Pushed 11y ago2 watchersCompare

[ Source](https://github.com/nchaulet/faye-client)[ Packagist](https://packagist.org/packages/nc/faye-client)[ RSS](/packages/nc-faye-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (3)

Faye Client
===========

[](#faye-client)

[![Build Status](https://camo.githubusercontent.com/7f0f8ab8f1ca5620f030bd89225df571c5692b64bb34f1ebbd49a09c693b42ba/68747470733a2f2f7472617669732d63692e6f72672f6e636861756c65742f666179652d636c69656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/nchaulet/faye-client)

PHP 5.3+ library to push message to a faye server.

Instalation
-----------

[](#instalation)

via composer

```
{
    "require": {
        "nc/faye-client": "~1.0",
        # if you want to use guzzle adapter
        "guzzle/guzzle": "~3.0"
    }
}
```

Usage
-----

[](#usage)

```
$adapter = new \Nc\FayeClient\Adapter\CurlAdapter();

$client = new \Nc\FayeClient\Client($adapter, 'http://127.0.0.1/faye');

$client->send("/channel1", array("name" => "foo"), array("token" => "456454sdqd"));
```

Client Send method documentation
--------------------------------

[](#client-send-method-documentation)

```
/**
 * Send message
 * @param  string $channel message channel
 * @param  array  $data    Data to send
 * @param  array  $ext     Extra data
 */
public function send($channel, $data = array(), $ext = array());
```

Adapter to post JSON
--------------------

[](#adapter-to-post-json)

```
* CurlAdapter   : `Nc\FayeClient\Adapter\CurlAdapter`
* GuzzleAdapter : `Nc\FayeClient\Adapter\GuzzleAdapter`

```

Run test
--------

[](#run-test)

```
php vendor/bin/atoum -D tests/ -bf tests/bootstrap.php
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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

Every ~157 days

Total

3

Last Release

4360d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4002edb06c9d3705f3b16889ca47a23ca4e9512a946222006f729b39d917dc03?d=identicon)[nchaulet](/maintainers/nchaulet)

---

Top Contributors

[![nchaulet](https://avatars.githubusercontent.com/u/1336873?v=4)](https://github.com/nchaulet "nchaulet (17 commits)")[![alcalyn](https://avatars.githubusercontent.com/u/1588144?v=4)](https://github.com/alcalyn "alcalyn (3 commits)")

---

Tags

websocketfaye

### Embed Badge

![Health badge](/badges/nc-faye-client/health.svg)

```
[![Health](https://phpackages.com/badges/nc-faye-client/health.svg)](https://phpackages.com/packages/nc-faye-client)
```

###  Alternatives

[cboden/ratchet

PHP WebSocket library

6.4k21.4M239](/packages/cboden-ratchet)[swow/swow

Coroutine-based multi-platform support engine with a focus on concurrent I/O

1.3k2.1M84](/packages/swow-swow)[ratchet/pawl

Asynchronous WebSocket client

6148.9M214](/packages/ratchet-pawl)[ratchet/rfc6455

RFC6455 WebSocket protocol handler

23433.7M69](/packages/ratchet-rfc6455)[wrench/wrench

PHP WebSocket client/server library

5903.1M11](/packages/wrench-wrench)[gos/web-socket-bundle

Symfony Web Socket Bundle

6202.2M8](/packages/gos-web-socket-bundle)

PHPackages © 2026

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