PHPackages                             codelego/phpfox-realm - 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. [Framework](/categories/framework)
4. /
5. codelego/phpfox-realm

ActiveLibrary[Framework](/categories/framework)

codelego/phpfox-realm
=====================

Real-time messages transfer layer interface for phpfox framework.

081PHP

Since Nov 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/codelego/phpfox-realm)[ Packagist](https://packagist.org/packages/codelego/phpfox-realm)[ RSS](/packages/codelego-phpfox-realm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Real time multiple layer support library for phpfox
===================================================

[](#real-time-multiple-layer-support-library-for-phpfox)

Prototype

```
1. $message =  new Message();
2. $recipinents  =  (select friend of sender).result;
3. $pusher->push($message, $recipinents);
```

1. Create new message to push.

```
$message  = new Message([
    id: int, identity of message,
    name: string, type of message,
    sender_id: int, who send the message,
    data: array,
    link: [], where to redirected,
    title: string, title of mesage,
    summary: string, some line describe about message,
    creation: datetime, when was this posted,
    expiration: int , when it will expires,
]);
```

2. Working with socket layer

- Each users may connect to multiple servers (scaling).
- Each message must be relayed on socket servers.
- For maintenance
    - We support only NodeJS socket server.
    - Provide cloud NodJS server for the client who have no NodeJs setup environment or testing.

Solution 01:

- Post Message:

- Use normal Ajax post to web server.
- Response to the client that message is posted.
- Server will relay on socket server to deliver messages.

- Get Message Via WebSocket
    - Keep clients connections.
    - Socket server handle request as a proxy and connection container.
    - Socket serverIn async way, no waiting and block IO. It get message, keep it in message container, then send to message delivery.

Solution 02

- Post Message:

- Use normal Ajax post to web server.
- Response to the client that message is posted.
- Server will post to a message queue service (Local, SQS, ...)

- Get Message Via WebSocket

- Keep clients connections, connect to message queue as sub-pub prototype.

3. Long Polling Request:

- Post Message:

- Use normal Ajax post to web server.
- Response to the client that message is posted.
- Do nothing

- Get Message

- Clients send ajax request to server.
- Server is looking up the messages
- If there are no new message, it will be idle then re-try after \[x\] times.
-

5. Using custom push service \[working as web socket\].

- \[pusher\] ()
- ...

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/4c3d8809b9c98303d06f8c66d22990374714dfb7f4a5a957d2e017517f4edd54?d=identicon)[codelego](/maintainers/codelego)

---

Top Contributors

[![codelego](https://avatars.githubusercontent.com/u/171187?v=4)](https://github.com/codelego "codelego (4 commits)")

### Embed Badge

![Health badge](/badges/codelego-phpfox-realm/health.svg)

```
[![Health](https://phpackages.com/badges/codelego-phpfox-realm/health.svg)](https://phpackages.com/packages/codelego-phpfox-realm)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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