PHPackages                             baohan/swoole-job - 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. [Framework](/categories/framework)
4. /
5. baohan/swoole-job

ActiveLibrary[Framework](/categories/framework)

baohan/swoole-job
=================

A multi-processes worker framework based on Swoole

1.0.2(9y ago)012MITPHPPHP ^5.5.9

Since Aug 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/baohanddd/swoole-job)[ Packagist](https://packagist.org/packages/baohan/swoole-job)[ RSS](/packages/baohan-swoole-job/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

swoole-gearman
==============

[](#swoole-gearman)

A job dispatcher based on swoole

Install
=======

[](#install)

Install `swoole` first.

```
composer update baohan/swoole-job

```

How
===

[](#how)

Quick start

```
$router = new \baohan\SwooleJob\Router();
$router->setPrefix("\\App\\Job\\");
$router->setExecutor("execute");
$router->setDecode(function($data) {
    return json_decode($data, true);
});

$serv = new \baohan\SwooleJob\Server($router);
$serv->setSwoolePort(9505);
// custom callback event
$serv->setEvtStart(function($serv) {
    echo "server start!" . PHP_EOL;
});
$serv->start();
```

Configure
=========

[](#configure)

Event callbacks

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79f2348c437cf1a1aae2848beacc1adc2cae3d8be7faacbe28d5a3483225a367?d=identicon)[baohanddd](/maintainers/baohanddd)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/baohan-swoole-job/health.svg)

```
[![Health](https://phpackages.com/badges/baohan-swoole-job/health.svg)](https://phpackages.com/packages/baohan-swoole-job)
```

###  Alternatives

[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

170227.3k3](/packages/davidepastore-slim-validation)[davidepastore/slim-restrict-route

A Slim middleware to restrict ip addresses that will access to your routes

2220.9k1](/packages/davidepastore-slim-restrict-route)

PHPackages © 2026

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