PHPackages                             bat\_coder/etzelclient - 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. bat\_coder/etzelclient

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

bat\_coder/etzelclient
======================

A minimal PHP library which connects to etzel server

091PHP

Since Aug 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/GavinDmello/Minimal-php-wrapper-for-etzel)[ Packagist](https://packagist.org/packages/bat_coder/etzelclient)[ RSS](/packages/bat-coder-etzelclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#PHP client for Etzel server:- In your composer.json file add { "minimum-stability": "dev", "require": { "bat\_coder/etzelclient": "dev-master" } }

#### 1. publish(queuename,message,options)

[](#1-publishqueuenamemessageoptions)

This pushes a message to etzel server.The arguments required are queuename (which is the name of the queue you want to pubish to), message (which is the message you want to publish to the queue),options includes delay and expire functionality . The options argument can be used when the message insert needs to be delayed or messaged validity needs to be expired. Options isn't an obligatory argument. The delay and expiry is taken in seconds.

Example:-

```

```

test is the queuename,hi is the message and the delay is 0 seconds

additional options for publish:

```
    $etzel->publish('test','hi',{delay:5,expires:3600,priority:0});

```

- `delay`: The item will not be available on the queue until this many seconds have passed. Default is 0 seconds. Maximum is 365 days(in seconds).
- `expires`: How long in seconds to keep the item on the queue before it is deleted. Default is 0(365 days).
- `priority`: It can be either -20,0,20 (High, Medium, Low).

#### 2. subscribe(queuename,callback)

[](#2-subscribequeuenamecallback)

The subscribe function is fetches a message from the etzel server. The argument required are queuename which is the name of the you want to fetch the data from, callback is a custom fucntion which you have you provide.

Example:-

```

    ec->subscribe("test",cb);

```

Here test is the queuename. An entity fetching data from the specific queue is called a worker. You can multiple workers working on the same queue. The server facilitates load balancing amongst the workers. Fetching a message will delete the message from the queue **temporarily**(re-queued after 60 seconds).

acknowledge(queuename,uid)

To delete it permanently , we use the acknowledge function which deletes/acknowledges a specific message from the queue. The arguments required are queuename and the id of the message you want to acknowledge.

### Responses received from the queue are as follows:-

[](#responses-received-from-the-queue-are-as-follows-)

The responses received are all in standard json format.

#### No Queue Found:-

[](#no-queue-found-)

```
{
    "cmd":"nok",
    "err": "Q_NOT_FOUND"
}
```

#### No Message Available in the requested Queue:-

```

{ "cmd":"nomsg", "qname": "$Q\_NAME" }

```

#### Server says it is OK to go to sleep

```

{ "cmd":"okslp", "qname": "$Q\_NAME" }

```

#### Message Available in the requested Queue:-

```

{ "cmd": "msg", "qname": "$Q\_NAME", "uid": "$uid", "error\_count": "$count", "msg": "$message" }

```

#### Queue is awake:-

```

{ "cmd":"awk", "qname": "$Q\_NAME" }

```

```

###  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/37ab779770bf2939c763842724677bda5363cbd57dad8ee15b4973802b07f4c5?d=identicon)[bat\_coder](/maintainers/bat_coder)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bat-coder-etzelclient/health.svg)

```
[![Health](https://phpackages.com/badges/bat-coder-etzelclient/health.svg)](https://phpackages.com/packages/bat-coder-etzelclient)
```

###  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)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

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

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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