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 4w 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 57% 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

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

[spatie/fork

A lightweight solution for running code concurrently in PHP

1.0k3.0M61](/packages/spatie-fork)[awcodes/filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.

265877.0k5](/packages/awcodes-filament-table-repeater)[maatwebsite/laravel-sidebar

A sidebar builder for Laravel

107329.5k17](/packages/maatwebsite-laravel-sidebar)[ulabox/money

Yet another PHP implementation of the Money value object using BCMath

77241.3k](/packages/ulabox-money)[damienharper/adf-tools

Atlassian Document Format PHP Tools

141.6M2](/packages/damienharper-adf-tools)[hejunjie/mobile-locator

基于国内号段规则的手机号码归属地查询库，支持运营商识别与地区定位，适用于注册验证、用户画像、数据归档等场景 | A mobile number lookup library based on Chinese carrier rules. Identifies carriers and regions, suitable for registration checks, user profiling, and data archiving.

197.4k1](/packages/hejunjie-mobile-locator)

PHPackages © 2026

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