Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
anime-dbPublic archive

About

[DEPRECATED] This is end of life and not maintained. Migrate to https://github.com/gpslab/shmop

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

59 Commits

Folders and files

Repository files navigation

Latest Stable Version Latest Unstable Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight StyleCI Dependency Status License

Shmop

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

Installation

Pretty simple with Composer, run:

composer require anime-db/shmop

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

This bundle is under the MIT license. See the complete license in the file: LICENSE

About

[DEPRECATED] This is end of life and not maintained. Migrate to https://github.com/gpslab/shmop

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages