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

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

gepard/gepard-php
=================

PHP client for gepard:General purpose communications for distributed applications / Microservices / events, semaphores and messages for JavaScript, Java, Python and PHP

011

Since Aug 9Compare

[ Source](https://github.com/gessinger-hj/gepard-php)[ Packagist](https://packagist.org/packages/gepard/gepard-php)[ RSS](/packages/gepard-gepard-php/feed)WikiDiscussions Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

gepard-php
==========

[](#gepard-php)

General purpose communication and synchronization layer for distributed applications / Microservices / events, semaphores, locks and messages for JavaScript, Java, Python and PHP

- [Overview](#overview)
- [Install](#install)
- [Usecases](#usecases)
    - [Updating a Customer-record in the Database](#updating-a-customer-record-in-the-database)

Overview
========

[](#overview)

This **PHP** module implements a simple client for the **GEPARD** middleware for general purpose distributed applications.

In order to use this **PHP** client you must have installed the **GEPARD** middleware. This is simply done by executing the command:

```
	npm install gepard
```

Prerequisite for this command is the installation of node and npm. For more information see [gepard on npm](https://www.npmjs.com/package/gepard) and [gessinger-hj/gepard on github](https://github.com/gessinger-hj/gepard).

If you are interested in the python client see [gepard-python on pypi](https://pypi.python.org/pypi/gepard-python)and [gepard-python on github](https://github.com/gessinger-hj/gepard-python)

Install
=======

[](#install)

If you not yet have a composer.json create this file with the following content:

```
{
    "require": {
        "gepard/gepard-php": ">=1.0"
    },
    "minimum-stability": "dev"
}
```

If this composer.json file already exists in your project-directory add the body-lines above. After this is done execute the command:

```
composer install
```

Usecases
========

[](#usecases)

Updating a Customer-record in the Database
------------------------------------------

[](#updating-a-customer-record-in-the-database)

Suppose there is a database containing customer base-data like for example name, id, enabled,...

The access to the database for example is done with **laravel/eloquent**. The UPDATE is coded with the following code-snippet:

```
$customer_Id = 1 ;
$customer = App\Customer::find($customer_id);

$customer->name = 'New Customer Name';

$customer->save();
```

Interested 3rd parties now are informed by sending an Event:

```
Client::getInstance()->emit('CUSTOMER_CHANGED', ['CUSTOMER_ID' => $customer_id]);
```

Interested parties for example are:

- A Java program which sends an e-mail.

    ```
     Client.getInstance().on ( new String[] { "CUSTOMER_CHANGED" }, (e) -> {
     	Integer customer_id = e.getValue ( "CUSTOMER_ID" ) ;

     	*select customer from database with customer_id*
     	*use any mail-api to send mail*
     } ) ;
    ```
- A JavaScript program which sends an e-mail:

    ```
     gepard.getClient().on ( 'CUSTOMER_CHANGED', (e) => {
     	let customer_id = e.getValue ( 'CUSTOMER_ID' ) ;

     	*select customer from database with customer_id*
     	*use any mail-api to send mail*
     } ) ;
    ```
- A Python program which sends an e-mail:

    ```
     def on_CUSTOMER_CHANGED ( event ):
     	customer_id = event.getValue ( 'CUSTOMER_ID' ) ;

     	*select customer from database with customer_id*
     	*use any mail-api to send mail*

     gepard.Client.getInstance().on ( 'CUSTOMER_CHANGED', on_CUSTOMER_CHANGED ) ;
    ```
- A single page web-app or a React-native app

    ```
     gepard.getWebClient().on ( 'CUSTOMER_CHANGED', (e) => {
     	let customer_id = e.getValue ( 'CUSTOMER_ID' ) ;

     	if ( customer-data are displayed in any part of the page ) {
     		*select customer from database with customer_id via a REST call*
     		*update appropriate display*
     	}
     } ) ;

    ```

###  Health Score

20

—

LowBetter than 13% 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 72% 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/6764583?v=4)[Gessinger, Hans Jürgen](/maintainers/gessinger-hj)[@gessinger-hj](https://github.com/gessinger-hj)

---

Top Contributors

[![paulgessinger](https://avatars.githubusercontent.com/u/1058585?v=4)](https://github.com/paulgessinger "paulgessinger (18 commits)")[![gessinger-hj](https://avatars.githubusercontent.com/u/6764583?v=4)](https://github.com/gessinger-hj "gessinger-hj (7 commits)")

### Embed Badge

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

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

###  Alternatives

[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5701.6k3](/packages/pfefferle-wordpress-activitypub)[payload-interop/payload-interop

An interoperable Domain Payload Object specification.

3887.7k7](/packages/payload-interop-payload-interop)[open-admin-ext/helpers

Helpers extension for open-admin

1250.1k](/packages/open-admin-ext-helpers)

PHPackages © 2026

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