PHPackages                             anime-db/shmop - 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. anime-db/shmop

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

anime-db/shmop
==============

Shmop is a simple and small abstraction layer for shared memory manipulation using PHP

v1.0.7(9y ago)51.5k11MITPHPPHP &gt;=5.0

Since Jul 3Pushed 9y ago2 watchersCompare

[ Source](https://github.com/anime-db/shmop)[ Packagist](https://packagist.org/packages/anime-db/shmop)[ Docs](http://github.com/anime-db/shmop)[ RSS](/packages/anime-db-shmop/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (8)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/dd8acaaf1feed9bc4b7b209821a9f8f13b2f7925d682c3e56ba6d1b51e0befdf/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f73686d6f702f762f737461626c652e706e67)](https://packagist.org/packages/anime-db/shmop)[![Latest Unstable Version](https://camo.githubusercontent.com/227e04a999ed0c3b1efb14ef00de5ef68d38818a68d2c736b0610c5089853270/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f73686d6f702f762f756e737461626c652e706e67)](https://packagist.org/packages/anime-db/shmop)[![Total Downloads](https://camo.githubusercontent.com/5331313cc9947b491e8a9246ef09a364567ba8ac50d52ffa955da0319792fabc/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f73686d6f702f646f776e6c6f616473)](https://packagist.org/packages/anime-db/shmop)[![Build Status](https://camo.githubusercontent.com/942fe44aff59d200b9870063f61b8ad3e8cf9408b3140a1eaf49b81fba95c0ed/68747470733a2f2f7472617669732d63692e6f72672f616e696d652d64622f73686d6f702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anime-db/shmop)[![Code Coverage](https://camo.githubusercontent.com/98ccf98c69d5fe4c54c40bd6c2a416006937bb4403f006031621ed28ea41ab55/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e696d652d64622f73686d6f702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/anime-db/shmop/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/278a2e9f5a373e68871e760f573f0ed7ae0c878f520815ded970051267256748/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e696d652d64622f73686d6f702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/anime-db/shmop/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/ebdd291358dc8691afc4493b2ae03de84806e0c6f5616bc28144179af394e0a2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36326164373765332d666233622d343264372d393365372d3265336232393661356138622f6d696e692e706e67)](https://insight.sensiolabs.com/projects/62ad77e3-fb3b-42d7-93e7-2e3b296a5a8b)[![StyleCI](https://camo.githubusercontent.com/0a054e2d3efe4e345a71ff4cdec542f7f8f24e092657dca4a3ea0be5298fd749/68747470733a2f2f7374796c6563692e696f2f7265706f732f32313432343937342f736869656c64)](https://styleci.io/repos/21424974)[![Dependency Status](https://camo.githubusercontent.com/3df7561f31f200685fac02e7931922a65bc2fe9dd3315db583101e64142c2d01/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537343666363961636538643065303034353035663466352f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/5746f69ace8d0e004505f4f5)[![License](https://camo.githubusercontent.com/09221a8b3918af911c3cb6ef08289b7863193c59aad5358f2195406ea670250b/68747470733a2f2f706f7365722e707567782e6f72672f616e696d652d64622f73686d6f702f6c6963656e73652e706e67)](https://packagist.org/packages/anime-db/shmop)

Shmop
=====

[](#shmop)

Shmop is a simple and small abstraction layer for shared memory manipulation using PHP

Installation
------------

[](#installation)

Pretty simple with [Composer](http://packagist.org), run:

```
composer require anime-db/shmop
```

Usage
-----

[](#usage)

Creating new block

```
use AnimeDb\Shmop\FixedBlock;

$sh = new FixedBlock(0xFF /* id for memory block */, 3 /* memory block size */);
$sh->write('foo');
echo $sh->read(); // print 'foo'
$sh->delete();
```

Reading an existing block

```
use AnimeDb\Shmop\FixedBlock;

$sh = new FixedBlock(0xFF, 3);
// print contents of memory block. if block is not exists prints a blank line
echo $sh->read();
```

License
-------

[](#license)

This bundle is under the [MIT license](http://opensource.org/licenses/MIT). See the complete license in the file: LICENSE

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~174 days

Recently: every ~246 days

Total

7

Last Release

3335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a6415c83577efe7b70d9ae4a3bb12958adc11c16e530ff844ff217b0fd0c54a?d=identicon)[Peter Gribanov](/maintainers/Peter%20Gribanov)

---

Top Contributors

[![peter-gribanov](https://avatars.githubusercontent.com/u/1954436?v=4)](https://github.com/peter-gribanov "peter-gribanov (59 commits)")

---

Tags

phpshmopphpshmop

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anime-db-shmop/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21623.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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