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. baohan/swoole-job

ActiveLibrary

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 1mo 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 37% 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

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

[league/openapi-psr7-validator

Validate PSR-7 messages against OpenAPI (3.0.2) specifications expressed in YAML or JSON

55615.9M69](/packages/league-openapi-psr7-validator)[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

171223.7k3](/packages/davidepastore-slim-validation)[hkarlstrom/openapi-validation-middleware

PSR-7 and PSR-15 OpenAPI Validation Middleware

95198.8k1](/packages/hkarlstrom-openapi-validation-middleware)[awurth/slim-validation

A wrapper around the respect/validation PHP validation library for easier error handling and display

65378.4k9](/packages/awurth-slim-validation)[macfja/redisearch

PHP Client for RediSearch

67154.9k1](/packages/macfja-redisearch)[lanlin/nylas-php

Nylas PHP SDK (api version 2.7)

28258.7k](/packages/lanlin-nylas-php)

PHPackages © 2026

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