PHPackages                             mqk/mqk - 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. mqk/mqk

ActiveLibrary

mqk/mqk
=======

v0.0.9(8y ago)2113PHPPHP &gt;= 5.6

Since Jul 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/imcj/mqk)[ Packagist](https://packagist.org/packages/mqk/mqk)[ RSS](/packages/mqk-mqk/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (11)Versions (10)Used By (0)

MQK
===

[](#mqk)

[简体中文](RADME_CN.md)

By google translate

MQK is a simple, high-performance PHP background task framework. MQK simplifies complex message queues to RPC and event handling, eliminating the need for complex queues, tasks, and processes. MQK can handle `20,000 +` data per second on a single core VPS, and `6,000 +` per second in fault tolerant mode.

Install
-------

[](#install)

```
composer require mqk/mqk

```

Dependencies
------------

[](#dependencies)

- php 5.6
- redis-server

Usage
-----

[](#usage)

1. The first step is to use the `K::invoke` method to call the method and pass in the parameter`\K::invoke ('\\ MQK\\Test\\Calculator::sum', 1, 2)`.

```
\K::invoke('Calculator::sum', 1, 2);
```

2. Create class and static methods

```
class Calculator
{
    public static function sum($a, $b)
    {
        return $a + $b;
    }
}
```

3. Start the consumer program. In debug mode, the console outputs the return result of the asynchronous task.

```
$ vendor/bin/mqk run
[2017-07-11 08:14:52] 14327 .NOTICE: Master work on 14327 [] []
[2017-07-11 08:14:56] 14331 .INFO: Message finished and result is 2 [] []

```

Development status
------------------

[](#development-status)

Development, is not recommended for use in the production environment.

- No rigorous testing, there may be a variety of problems.
- Function parameters in json format serialization, can not use php objects

Documents
---------

[](#documents)

It is recommended to use MQK's event mechanism to perform real-time data analysis.

- [Getting started](docs/en/getting-started.md)
- [Basic](docs/en/basic.md)
- [RPC](docs/en/rpc.md)
- [Event](docs/en/event.md)
- [Best practices](docs/en/practices.md)
- [Config](docs/en/config.md)
- [Error handle](docs/en/error.md)
- [Advance options](docs/en/advanced_options.md)
- [Process health](docs/en/process_health.md)
- [Logging](docs/en/logging.md)
- [Signals](docs/en/signals.md)
- [Sharding](docs/en/sharding.md)
- [Command line](docs/en/command_line.md)
- [Process management](docs/en/process.md)

Chinese contents of table
-------------------------

[](#chinese-contents-of-table)

- [新手入门](docs/cn/getting-started.md)
- [基本使用说明](docs/cn/basic.md)
- [RPC](docs/cn/rpc.md)
- [事件](docs/cn/event.md)
- [最佳实践](docs/cn/practices.md)
- [配置](docs/cn/config.md)
- [错误处理](docs/cn/error.md)
- [高级选项](docs/cn/advanced_options.md)
- [进程健康状态](docs/cn/process_health.md)
- [日志](docs/cn/logging.md)
- [信号](docs/cn/signals.md)
- [扩容](docs/cn/sharding.md)
- [命令行说明](docs/cn/command_line.md)
- [进程管理](docs/cn/process.md)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.8% 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 ~21 days

Total

9

Last Release

3053d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5be6a3625ab4925b2a95ef1cbbc87cd6b9dd719d1ce0cdb0a5e4f030ca762831?d=identicon)[imcj](/maintainers/imcj)

---

Top Contributors

[![fatrellis](https://avatars.githubusercontent.com/u/29561244?v=4)](https://github.com/fatrellis "fatrellis (164 commits)")[![imcj](https://avatars.githubusercontent.com/u/551736?v=4)](https://github.com/imcj "imcj (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mqk-mqk/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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