{"id":23802793,"url":"https://github.com/lctrs/circular-buffer","last_synced_at":"2025-10-12T04:32:53.812Z","repository":{"id":36985359,"uuid":"417816211","full_name":"Lctrs/circular-buffer","owner":"Lctrs","description":"A circular buffer implementation in PHP","archived":false,"fork":false,"pushed_at":"2025-08-31T09:57:23.000Z","size":436,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-06T22:09:18.543Z","etag":null,"topics":["buffer","circular","cyclic","php","queue","ring"],"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/Lctrs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-16T12:05:55.000Z","updated_at":"2025-08-11T14:12:49.000Z","dependencies_parsed_at":"2023-10-27T17:25:12.441Z","dependency_job_id":"a99d429f-871a-4ed5-a750-cc63235308eb","html_url":"https://github.com/Lctrs/circular-buffer","commit_stats":{"total_commits":55,"total_committers":3,"mean_commits":"18.333333333333332","dds":"0.054545454545454564","last_synced_commit":"cbbd73cbe76cf40c469af59c84232cc0497b4925"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Lctrs/circular-buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lctrs%2Fcircular-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lctrs%2Fcircular-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lctrs%2Fcircular-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lctrs%2Fcircular-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lctrs","download_url":"https://codeload.github.com/Lctrs/circular-buffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lctrs%2Fcircular-buffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274366057,"owners_count":25272293,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["buffer","circular","cyclic","php","queue","ring"],"created_at":"2025-01-01T22:27:45.924Z","updated_at":"2025-10-12T04:32:48.780Z","avatar_url":"https://github.com/Lctrs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Circular Buffer\n\n[![Integrate](https://github.com/Lctrs/circular-buffer/workflows/Integrate/badge.svg)](https://github.com/Lctrs/circular-buffer/actions)\n[![Release](https://github.com/Lctrs/circular-buffer/workflows/Release/badge.svg)](https://github.com/Lctrs/circular-buffer/actions)\n[![Renew](https://github.com/Lctrs/circular-buffer/workflows/Renew/badge.svg)](https://github.com/Lctrs/circular-buffer/actions)\n\n[![Mutation Score](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FLctrs%2Fcircular-buffer%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/Lctrs/circular-buffer/master)\n[![Code Coverage](https://codecov.io/gh/Lctrs/circular-buffer/branch/master/graph/badge.svg)](https://codecov.io/gh/Lctrs/circular-buffer)\n[![Type Coverage](https://shepherd.dev/github/Lctrs/circular-buffer/coverage.svg)](https://shepherd.dev/github/Lctrs/circular-buffer)\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/Lctrs/circular-buffer?style=flat-square)](https://packagist.org/packages/Lctrs/circular-buffer)\n[![Total Downloads](https://img.shields.io/packagist/dt/Lctrs/circular-buffer?style=flat-square)](https://packagist.org/packages/Lctrs/circular-buffer)\n\n## Installation\n\n:bulb: This is a great place for showing how to install the package, see below:\n\nRun\n\n```sh\n$ composer require lctrs/circular-buffer\n```\n\n## Usage\n\nCreating an empty circular buffer of size eg. 2:\n```php\nuse Lctrs\\CircularBuffer\\CircularBuffer;\n\n$buffer = CircularBuffer::ofCapacity(2);\n$buffer-\u003ewrite('foo');\n$buffer-\u003eread(); // foo\n```\n\nYou can also create a prefilled buffer:\n```php\nuse Lctrs\\CircularBuffer\\CircularBuffer;\n\n$buffer = CircularBuffer::prefilled(2, ['foo', 'bar']);\n```\n\n\n\n## Changelog\n\nPlease have a look at [`CHANGELOG.md`](CHANGELOG.md).\n\n## Contributing\n\nPlease have a look at [`CONTRIBUTING.md`](.github/CONTRIBUTING.md).\n\n## License\n\nThis package is licensed using the MIT License.\n\nPlease have a look at [`LICENSE.md`](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flctrs%2Fcircular-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flctrs%2Fcircular-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flctrs%2Fcircular-buffer/lists"}