PHPackages                             abuisine/php-afanasy-client - 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. abuisine/php-afanasy-client

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

abuisine/php-afanasy-client
===========================

A PHP rewrite of the Afanasy python client

2.1.0(5y ago)0501GPL-3.0PHPPHP &gt;=5.6CI failing

Since Apr 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/abuisine/php-afanasy-client)[ Packagist](https://packagist.org/packages/abuisine/php-afanasy-client)[ Docs](https://github.com/abuisine/php-afanasy-client)[ RSS](/packages/abuisine-php-afanasy-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (13)Used By (0)

Introduction
============

[](#introduction)

This is an implementation of a client for the Afanasy server. It's based on the [python client](https://github.com/CGRU/cgru/blob/master/afanasy/python), but even if it's goal is to provide the same features, some of them are missing other are specific to this package and even if the overall architecture looks similar, there is a few differences. So don't expect this to provide a 1:1 reproduction of the python client.

Here is the API's [official documentation](https://cgru.info/afanasy/api).

How to
======

[](#how-to)

First, you need to install the library, you can use composer: `composer require abuisine/php-afanasy-client`.

Then, the usage is quite straightforward. Create a Network object with your server's adress and port.

```
use Afanasy\Network;

$afnetwork = new Network('localhost', 51000);
```

You will then be able to interact with the server from this object. Here are a few examples.

```
use Afanasy\Job;
use Afanasy\Block;
use Afanasy\Task;

// Get all jobs
$jobs = $afnetwork->getAllJobs();

// Pause jobs
$jobIds = array_column($jobs['jobs'], 'job_id');
$afnetwork->pauseJobs($jobIds);

// Send a new Job
$job = new Job("Foo");
$block = new Block("Bar");
$task = new Task("FooBar");
$job->addBlock($block);
$block->addTask($task);
$task->setCommand('echo "Hello, World!"');

$afnetwork->sendJob($job);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~120 days

Recently: every ~285 days

Total

11

Last Release

2123d ago

Major Versions

0.99.0 → 1.0.02017-04-03

1.3.2 → 2.0.02020-07-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d83af4cdf5c7fd47cabed24c4cb15c60db17b96379e80880c0d372371a2f15d?d=identicon)[abuisine](/maintainers/abuisine)

---

Top Contributors

[![plaffitt](https://avatars.githubusercontent.com/u/23403270?v=4)](https://github.com/plaffitt "plaffitt (16 commits)")[![abuisine](https://avatars.githubusercontent.com/u/1078681?v=4)](https://github.com/abuisine "abuisine (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/abuisine-php-afanasy-client/health.svg)

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

###  Alternatives

[ctidigital/magento2-configurator

Keep magento persistently configured using files

174317.4k](/packages/ctidigital-magento2-configurator)[comcast/php-legal-licenses

A utility to generate a Licenses file containing the full license text for every dependency in your project for legal purposes.

821.1M9](/packages/comcast-php-legal-licenses)[xfra35/f3-cron

Job scheduling for the PHP Fat-Free Framework

73107.5k](/packages/xfra35-f3-cron)[bagusindrayana/laravel-coordinate

get nearby location from eloquent laravel

3019.7k](/packages/bagusindrayana-laravel-coordinate)

PHPackages © 2026

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