PHPackages                             yurunsoft/swoole-shared-memory - 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. yurunsoft/swoole-shared-memory

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yurunsoft/swoole-shared-memory
==============================

v1.0.1(4y ago)867.5k—0%4[1 issues](https://github.com/Yurunsoft/swoole-shared-memory/issues)1MITPHP

Since Dec 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Yurunsoft/swoole-shared-memory)[ Packagist](https://packagist.org/packages/yurunsoft/swoole-shared-memory)[ RSS](/packages/yurunsoft-swoole-shared-memory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (1)

swoole-shared-memory
====================

[](#swoole-shared-memory)

[![Latest Version](https://camo.githubusercontent.com/530c8bf7e0f63c9d6fa005d34f081e54002eb17bc54dfaebb063c7ad619bed60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797572756e736f66742f73776f6f6c652d7368617265642d6d656d6f72792e737667)](https://packagist.org/packages/yurunsoft/swoole-shared-memory)[![Php Version](https://camo.githubusercontent.com/315f5c30e505b9ccc4178451bbd34c2ba5d281d1fa3267304053ed19ab634125/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e312d627269676874677265656e2e737667)](https://secure.php.net/)[![Swoole Version](https://camo.githubusercontent.com/f077644cadc3b88104d75a54818d0e1462f910dc6d6dfd9939ea295fb11b4e2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776f6f6c652d2533453d342e312e302d627269676874677265656e2e737667)](https://github.com/swoole/swoole-src)[![IMI License](https://camo.githubusercontent.com/cf2545ca1f9f454bcb15254e0440f1480dd2b9f3fac0fdc5497cbff7a2f43a71/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f597572756e736f66742f73776f6f6c652d7368617265642d6d656d6f72792e737667)](https://github.com/Yurunsoft/swoole-shared-memory/blob/master/LICENSE)

介绍
--

[](#介绍)

`Swoole Shared Memory` ( 以下简称 `SSM` ) 是为了解决 `Swoole` 常驻内存场景，多进程变量共享问题而开发的组件。

`SSM` 直接支持任意变量的跨进程共享，它是通过序列化和反序列化实现的。不仅支持常用的 `KV` 操作，还支持`Stack`、`Queue` 和 `PriorityQueue`数据结构操作。

`SSM` 通过 `Unix Socket` 内核通信，不走网卡，效率极高。无需预先定义空间大小、字段等，甚至可以与 `fpm` 项目进行变量共享 ( `fpm` 项目仅可作为客户端 )。

你只需要在 `Swoole` 自定义进程中启动 `SSM` 服务来监听 `Unix Socket`，或者也可以启动一个独立的 `SSM` 服务。

Composer
--------

[](#composer)

本项目可以使用composer安装，遵循psr-4自动加载规则，在你的 `composer.json` 中加入下面的内容:

```
{
    "require": {
        "yurunsoft/swoole-shared-memory": "~1.0"
    }
}
```

然后执行 `composer update` 安装。

文档
--

[](#文档)

[API 文档](https://apidoc.gitee.com/yurunsoft/swoole-shared-memory) (感谢码云提供服务)

QQ群：17916227 [![点击加群](https://camo.githubusercontent.com/75b53e353bb9e5064662e185a6d39f4bb88c4e45bd3a1240ddf599525edb6afa/68747470733a2f2f7075622e69647171696d672e636f6d2f7770612f696d616765732f67726f75702e706e67 "点击加群")](https://jq.qq.com/?_wv=1027&k=5wXf4Zq)，如有问题会有人解答和修复。

运行环境
----

[](#运行环境)

- [PHP](https://php.net/) &gt;= 7.1
- [Composer](https://getcomposer.org/)
- [Swoole](https://www.swoole.com/) &gt;= 4.1.0

版权信息
----

[](#版权信息)

Swoole Shared Memory 遵循 MIT 开源协议发布，并提供免费使用。

捐赠
--

[](#捐赠)

[![](https://raw.githubusercontent.com/Yurunsoft/swoole-shared-memory/dev/res/pay.png)](https://raw.githubusercontent.com/Yurunsoft/swoole-shared-memory/dev/res/pay.png)

开源不求盈利，多少都是心意，生活不易，随缘随缘……

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~1002 days

Total

2

Last Release

1699d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f917bb42280d114c53cebadc2942a13ee03abe14971089f88895e266d637169?d=identicon)[Yurunsoft](/maintainers/Yurunsoft)

---

Top Contributors

[![Yurunsoft](https://avatars.githubusercontent.com/u/20104656?v=4)](https://github.com/Yurunsoft "Yurunsoft (15 commits)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (1 commits)")

---

Tags

phpsharedmemoryswoole

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yurunsoft-swoole-shared-memory/health.svg)

```
[![Health](https://phpackages.com/badges/yurunsoft-swoole-shared-memory/health.svg)](https://phpackages.com/packages/yurunsoft-swoole-shared-memory)
```

###  Alternatives

[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[ezsystems/ezautosave-ls

Content editing autosave extension for eZ Publish legacy

22423.2k3](/packages/ezsystems-ezautosave-ls)[copyleaks/php-plagiarism-checker

Copyleaks detects online plagiarism and checks content distribution. Use Copyleaks to find out if textual content is original and where it has been used before. This package shows how to integrate with the Copyleaks cloud to search for copyright infringement.

5066.4k](/packages/copyleaks-php-plagiarism-checker)[teknomavi/tcmb

T.C. Merkez Bankası üzerinden güncel döviz kurlarını çeker

7019.2k](/packages/teknomavi-tcmb)[silverstripe/multiform

SilverStripe forms with multiple steps, flow control and state persistence

3156.0k3](/packages/silverstripe-multiform)[kolab/calendar

Calendar plugin

3010.5k](/packages/kolab-calendar)

PHPackages © 2026

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