PHPackages                             anchu/faye-php - 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. anchu/faye-php

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

anchu/faye-php
==============

This is a PHP wrapper for interacting with the Faye server.

8621PHP

Since Nov 18Pushed 12y ago1 watchersCompare

[ Source](https://github.com/harishanchu/faye-php-server)[ Packagist](https://packagist.org/packages/anchu/faye-php)[ RSS](/packages/anchu-faye-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Faye PHP Library

This is a PHP library for interacting with the Faye server. Faye is a publish-subscribe messaging system based on the Bayeux protocol.

\##Installation

You can get the Faye PHP library via composer package. See

Or you can clone or download the library files.

\##Faye constructor

Use the Faye server configurations to create a new Faye instance.

```
$host = 'YOUR_FAYE_HOST';
$mountPoint = 'YOUR_FAYE_MOUNT_POINT';
$port = 'YOUR_FAYE_PORT'; //by default this will be 8000

$faye = new Faye($host, $mountPoint, $port);

```

\##Publishing/Triggering messges

To trigger a message on a channel use the trigger function.

```
$faye->trigger( 'my-channel', 'my_event', 'hello world' );

```

\###Arrays

Objects are automatically converted to JSON format:

```
$array['status'] = 'success';
$array['action'] = 'continue';

$faye->trigger('my_channel', 'my_event', $array);

```

The output of this will be:

```
"{'event': 'my_event', 'message': {'status': 'success', 'action': 'continue'}}"

```

\##License

Copyright 2013, Harish A. Licensed under the MIT license:

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4878251?v=4)[anchu](/maintainers/anchu)[@anchu](https://github.com/anchu)

---

Top Contributors

[![anchu](https://avatars.githubusercontent.com/u/4878251?v=4)](https://github.com/anchu "anchu (10 commits)")[![harishanchu](https://avatars.githubusercontent.com/u/2888759?v=4)](https://github.com/harishanchu "harishanchu (4 commits)")

### Embed Badge

![Health badge](/badges/anchu-faye-php/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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