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 2mo 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 59% 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

2130d 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

[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[ezsystems/ezautosave-ls

Content editing autosave extension for eZ Publish legacy

22423.2k3](/packages/ezsystems-ezautosave-ls)[copyleaks/php-plagiarism-checker

Copyleaks detects online plagiarism and checks content distribution. Use Copyleaks to find out if textual content is original and where it has been used before. This package shows how to integrate with the Copyleaks cloud to search for copyright infringement.

5066.4k](/packages/copyleaks-php-plagiarism-checker)[teknomavi/tcmb

T.C. Merkez Bankası üzerinden güncel döviz kurlarını çeker

7019.2k](/packages/teknomavi-tcmb)[silverstripe/multiform

SilverStripe forms with multiple steps, flow control and state persistence

3156.0k3](/packages/silverstripe-multiform)[kinglozzer/multiselectfield

A sortable multiple select field for managing many-to-many relations

1341.2k2](/packages/kinglozzer-multiselectfield)

PHPackages © 2026

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