{"id":25360501,"url":"https://github.com/anime-db/shmop","last_synced_at":"2025-06-16T00:05:05.226Z","repository":{"id":18265236,"uuid":"21424974","full_name":"anime-db/shmop","owner":"anime-db","description":"[DEPRECATED] This is end of life and not maintained. Migrate to https://github.com/gpslab/shmop","archived":false,"fork":false,"pushed_at":"2017-05-15T07:59:28.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-23T11:15:57.309Z","etag":null,"topics":["php","shmop"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anime-db.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-02T13:23:23.000Z","updated_at":"2017-05-12T14:41:04.000Z","dependencies_parsed_at":"2022-08-27T05:11:15.629Z","dependency_job_id":null,"html_url":"https://github.com/anime-db/shmop","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/anime-db/shmop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anime-db%2Fshmop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anime-db%2Fshmop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anime-db%2Fshmop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anime-db%2Fshmop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anime-db","download_url":"https://codeload.github.com/anime-db/shmop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anime-db%2Fshmop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072424,"owners_count":22954910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","shmop"],"created_at":"2025-02-14T21:54:19.141Z","updated_at":"2025-06-16T00:05:05.200Z","avatar_url":"https://github.com/anime-db.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/anime-db/shmop/v/stable.png)](https://packagist.org/packages/anime-db/shmop)\n[![Latest Unstable Version](https://poser.pugx.org/anime-db/shmop/v/unstable.png)](https://packagist.org/packages/anime-db/shmop)\n[![Total Downloads](https://poser.pugx.org/anime-db/shmop/downloads)](https://packagist.org/packages/anime-db/shmop)\n[![Build Status](https://travis-ci.org/anime-db/shmop.svg?branch=master)](https://travis-ci.org/anime-db/shmop)\n[![Code Coverage](https://scrutinizer-ci.com/g/anime-db/shmop/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/anime-db/shmop/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/anime-db/shmop/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/anime-db/shmop/?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/62ad77e3-fb3b-42d7-93e7-2e3b296a5a8b/mini.png)](https://insight.sensiolabs.com/projects/62ad77e3-fb3b-42d7-93e7-2e3b296a5a8b)\n[![StyleCI](https://styleci.io/repos/21424974/shield)](https://styleci.io/repos/21424974)\n[![Dependency Status](https://www.versioneye.com/user/projects/5746f69ace8d0e004505f4f5/badge.svg?style=flat)](https://www.versioneye.com/user/projects/5746f69ace8d0e004505f4f5)\n[![License](https://poser.pugx.org/anime-db/shmop/license.png)](https://packagist.org/packages/anime-db/shmop)\n\n# Shmop\n\nShmop is a simple and small abstraction layer for shared memory manipulation using PHP\n\n## Installation\n\nPretty simple with [Composer](http://packagist.org), run:\n\n```sh\ncomposer require anime-db/shmop\n```\n\n## Usage\n\nCreating new block\n\n```php\nuse AnimeDb\\Shmop\\FixedBlock;\n\n$sh = new FixedBlock(0xFF /* id for memory block */, 3 /* memory block size */);\n$sh-\u003ewrite('foo');\necho $sh-\u003eread(); // print 'foo'\n$sh-\u003edelete();\n```\n\nReading an existing block\n\n```php\nuse AnimeDb\\Shmop\\FixedBlock;\n\n$sh = new FixedBlock(0xFF, 3);\n// print contents of memory block. if block is not exists prints a blank line\necho $sh-\u003eread();\n```\n\n## License\n\nThis bundle is under the [MIT license](http://opensource.org/licenses/MIT). See the complete license in the file: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanime-db%2Fshmop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanime-db%2Fshmop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanime-db%2Fshmop/lists"}