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 2mo 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 27% 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://www.gravatar.com/avatar/06731a1a143190d837c87832897951e61c91c02ab0d67a5b6cde0ab45ed84f46?d=identicon)[anchu](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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