PHPackages                             toulen/tshmop - 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. toulen/tshmop

ActiveLibrary

toulen/tshmop
=============

1.0(8y ago)3172MITPHPPHP &gt;=5.4.0

Since Sep 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/toulen/Tshmop)[ Packagist](https://packagist.org/packages/toulen/tshmop)[ RSS](/packages/toulen-tshmop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Tshmop是一个基于shmop,纯PHP开发的一个共享内存基础类
=================================

[](#tshmop是一个基于shmop纯php开发的一个共享内存基础类)

最初的目的: 在多进程运行一些程序的时候,各个进程之间会有数据的隔离,于是使用了shmop来进行内存共享.shmop提供了开启一个内存段,读写内存段已经清空和关闭的功能.于是我将这个函数封装成了一个类,方便以后的扩展.实现了多应用之间的数据共享.内存长度变长等基础功能.

以后的方向: 后续会开发一个基于此的小而美的PHP开发的内存缓存服务器,以C/S的模式运行.可能会包含:key-value存储, session共享(实现单点登录),消息队列等功能.

安装:
---

[](#安装)

```
composer require toulen/tshmop:1.0

```

使用:
---

[](#使用)

```
$Tshmop = new \Tshmop\Tshmop();
//$data可以是数组,也可以是字符串
$Tshmop->put($data);
$Tshmop->get();
$Tshmop->clean();
$Tshmop->close();

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3166d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13675213?v=4)[Yan Tao](/maintainers/toulen)[@toulen](https://github.com/toulen)

### Embed Badge

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

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

PHPackages © 2026

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