{"id":23434931,"url":"https://github.com/gpslab/shmop","last_synced_at":"2025-07-09T20:36:57.386Z","repository":{"id":62512128,"uuid":"91094997","full_name":"gpslab/shmop","owner":"gpslab","description":"Shmop is a simple and small abstraction layer for shared memory manipulation using PHP","archived":false,"fork":false,"pushed_at":"2020-01-13T08:14:09.000Z","size":42,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T11:20:50.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gpslab.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":"2017-05-12T13:37:04.000Z","updated_at":"2024-10-10T09:30:47.000Z","dependencies_parsed_at":"2022-11-02T12:47:19.492Z","dependency_job_id":null,"html_url":"https://github.com/gpslab/shmop","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gpslab/shmop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpslab%2Fshmop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpslab%2Fshmop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpslab%2Fshmop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpslab%2Fshmop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpslab","download_url":"https://codeload.github.com/gpslab/shmop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpslab%2Fshmop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502993,"owners_count":23618675,"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":[],"created_at":"2024-12-23T12:34:05.898Z","updated_at":"2025-07-09T20:36:57.357Z","avatar_url":"https://github.com/gpslab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://img.shields.io/packagist/v/gpslab/shmop.svg?maxAge=\u0026label=stable)](https://packagist.org/packages/gpslab/shmop)\n[![Total Downloads](https://img.shields.io/packagist/dt/gpslab/shmop.svg?maxAge=)](https://packagist.org/packages/gpslab/shmop)\n[![Build Status](https://img.shields.io/travis/gpslab/shmop.svg?maxAge=)](https://travis-ci.org/gpslab/shmop)\n[![Coverage Status](https://img.shields.io/coveralls/gpslab/shmop.svg?maxAge=)](https://coveralls.io/github/gpslab/shmop?branch=master)\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/gpslab/shmop.svg?maxAge=)](https://scrutinizer-ci.com/g/gpslab/shmop/?branch=master)\n[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/9b72d25e-8dca-4b71-a8a5-a1ec92050982.svg?maxAge=\u0026label=SLInsight)](https://insight.sensiolabs.com/projects/9b72d25e-8dca-4b71-a8a5-a1ec92050982)\n[![StyleCI](https://styleci.io/repos/91094997/shield?branch=master)](https://styleci.io/repos/91094997)\n[![License](https://img.shields.io/packagist/l/gpslab/shmop.svg?maxAge=)](https://github.com/gpslab/shmop)\n\n# Shmop\n\nShmop is a simple and small abstraction layer for shared memory manipulation using PHP.\n\n![Shared memory](shared_memory.gif)\n\n## Installation\n\nPretty simple with [Composer](http://packagist.org), run:\n\n```sh\ncomposer require gpslab/shmop\n```\n\n## Usage\n\nCreating new block\n\n```php\nuse GpsLab\\Component\\Shmop\\Block;\n\n$sh = new Block(\n    0xFF, // id for memory block\n    3 // memory block size\n);\n$sh-\u003ewrite('foo');\necho $sh-\u003eread(); // print 'foo'\n$sh-\u003edelete();\n```\n\nMemory block must be a fixed size for correct reading from it.\n\nReading an existing block\n\n```php\nuse GpsLab\\Component\\Shmop\\Block;\n\n$sh = new Block(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%2Fgpslab%2Fshmop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpslab%2Fshmop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpslab%2Fshmop/lists"}