PHPackages                             brianlmoon/net\_gearman - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. brianlmoon/net\_gearman

ActiveLibrary[Queues &amp; Workers](/categories/queues)

brianlmoon/net\_gearman
=======================

PHP daemon for managing gearman workers

2.3.1(9mo ago)89474.4k—0.7%46[3 issues](https://github.com/brianlmoon/net_gearman/issues)BSD-2-ClausePHPPHP ^7.0.0|^8.0.0

Since Feb 3Pushed 9mo ago8 watchersCompare

[ Source](https://github.com/brianlmoon/net_gearman)[ Packagist](https://packagist.org/packages/brianlmoon/net_gearman)[ Docs](http://brian.moonspot.net/GearmanManager)[ RSS](/packages/brianlmoon-net-gearman/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (21)Used By (0)

Net Gearman
===========

[](#net-gearman)

About
-----

[](#about)

Net\_Gearman is a package for interfacing with Gearman. Gearman is a system to farm out work to other machines, dispatching function calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages.

Installation
------------

[](#installation)

```
$ composer require brianlmoon/net_gearman

```

Examples
--------

[](#examples)

### Client

[](#client)

```
$client = new Net_Gearman_Client("localhost");
$set = new Net_Gearman_Set();
$task = new Net_Gearman_Task("Reverse_String", "foobar");
$task->attachCallback(
    function($func, $handle, $result){
        print_r($result)
    }
);
$set->addTask($task);
$client->runSet($set, $timeout);

```

### Job

[](#job)

```
class Reverse_String extends Net_Gearman_Job_Common {

    public function run($workload) {
        $result = strrev($workload);
        return $result;
    }
}

```

### Worker

[](#worker)

For easiest use, use GearmanManager for running workers. See:

```
$worker = new Net_Gearman_Worker('localhost');
$worker->addAbility('Reverse_String');
$worker->beginWork();

```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance55

Moderate activity, may be stable

Popularity53

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~258 days

Recently: every ~222 days

Total

13

Last Release

292d ago

Major Versions

1.0.2 → 2.0.02018-08-20

PHP version history (4 changes)1.0.0-betaPHP &gt;=5.2.0

1.0.1PHP &gt;=5.6.0

2.0.0PHP ^7.0.0

2.1.0PHP ^7.0.0|^8.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49531?v=4)[Brian Moon](/maintainers/brianlmoon)[@brianlmoon](https://github.com/brianlmoon)

---

Top Contributors

[![brianlmoon](https://avatars.githubusercontent.com/u/49531?v=4)](https://github.com/brianlmoon "brianlmoon (75 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (42 commits)")[![j03k64](https://avatars.githubusercontent.com/u/801500?v=4)](https://github.com/j03k64 "j03k64 (35 commits)")[![joestump](https://avatars.githubusercontent.com/u/37667?v=4)](https://github.com/joestump "joestump (20 commits)")[![lenn0x](https://avatars.githubusercontent.com/u/11832?v=4)](https://github.com/lenn0x "lenn0x (11 commits)")[![bkw](https://avatars.githubusercontent.com/u/60910?v=4)](https://github.com/bkw "bkw (10 commits)")[![strayer](https://avatars.githubusercontent.com/u/310624?v=4)](https://github.com/strayer "strayer (3 commits)")[![bdeshong](https://avatars.githubusercontent.com/u/1082647?v=4)](https://github.com/bdeshong "bdeshong (2 commits)")[![ivan1986](https://avatars.githubusercontent.com/u/156418?v=4)](https://github.com/ivan1986 "ivan1986 (1 commits)")[![etienneq](https://avatars.githubusercontent.com/u/3263670?v=4)](https://github.com/etienneq "etienneq (1 commits)")[![eschultz](https://avatars.githubusercontent.com/u/390064?v=4)](https://github.com/eschultz "eschultz (1 commits)")[![rokclimb15](https://avatars.githubusercontent.com/u/583271?v=4)](https://github.com/rokclimb15 "rokclimb15 (1 commits)")[![SimoneDoc](https://avatars.githubusercontent.com/u/107252811?v=4)](https://github.com/SimoneDoc "SimoneDoc (1 commits)")[![dynamicnet](https://avatars.githubusercontent.com/u/659594?v=4)](https://github.com/dynamicnet "dynamicnet (1 commits)")[![ddebin](https://avatars.githubusercontent.com/u/458007?v=4)](https://github.com/ddebin "ddebin (1 commits)")

---

Tags

gearmanphpgearmannet\_gearmangearman-manager

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brianlmoon-net-gearman/health.svg)

```
[![Health](https://phpackages.com/badges/brianlmoon-net-gearman/health.svg)](https://phpackages.com/packages/brianlmoon-net-gearman)
```

###  Alternatives

[brianlmoon/gearmanmanager

PHP daemon for managing gearman workers

68290.2k1](/packages/brianlmoon-gearmanmanager)[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[mmoreram/gearman-bundle

Adds gearman support to your and Symfony4, Symfony5 project

237395.2k2](/packages/mmoreram-gearman-bundle)[react/async

Async utilities and fibers for ReactPHP

2228.8M171](/packages/react-async)[supertag/gearman-bundle

Gearman bundle for Symfony2 to manage and monitor PHP gearman jobs and queue

1441.3k](/packages/supertag-gearman-bundle)[cvo-technologies/cakephp-gearman

A gearman plugin for CakePHP 3

1243.5k](/packages/cvo-technologies-cakephp-gearman)

PHPackages © 2026

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