{"id":37265780,"url":"https://github.com/buttress/collecterator","last_synced_at":"2026-01-16T00:14:23.391Z","repository":{"id":62498408,"uuid":"83930497","full_name":"buttress/collecterator","owner":"buttress","description":"Generator based PHP Collections","archived":false,"fork":false,"pushed_at":"2025-04-12T21:13:49.000Z","size":46,"stargazers_count":33,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T02:51:37.117Z","etag":null,"topics":["by","collections","generators","php","powered"],"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/buttress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-04T23:03:03.000Z","updated_at":"2025-04-12T21:12:43.000Z","dependencies_parsed_at":"2025-04-12T22:21:27.833Z","dependency_job_id":null,"html_url":"https://github.com/buttress/collecterator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/buttress/collecterator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttress%2Fcollecterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttress%2Fcollecterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttress%2Fcollecterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttress%2Fcollecterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buttress","download_url":"https://codeload.github.com/buttress/collecterator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttress%2Fcollecterator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["by","collections","generators","php","powered"],"created_at":"2026-01-16T00:14:22.793Z","updated_at":"2026-01-16T00:14:23.385Z","avatar_url":"https://github.com/buttress.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collecterator: Generator based collections\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-actions]][link-actions]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nThis library is a fully featured `\\Generator` based Collection implementation. \nThe goal is to provide a memory efficient fast collection implementation that makes it possible to use familiar\ncollection methods to work with infinite or very large streams.\n\nOur tests were largely copied from [`tightenco/collect`](https://packagist.org/packages/tightenco/collect) with many \nmodifications added to support the deferred processing you get with `Generators`.\n\nFor basic usage, see [the `AllMethods.php` example](examples/AllMethods.php)\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require buttress/collecterator\n```\n\n## Usage\n\n``` php\n$collection = GeneratorCollection::make([1,2,3]);\n$collection-\u003efilter(function(int $value) {\n    return $value % 2;\n});\n\n$array = $collection-\u003eall();\n```\n\n## Change log\n\nPlease see [CHANGELOG](https://github.com/buttress/collecterator/releases) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email korvinszanto@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Korvin Szanto][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/buttress/collecterator.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-actions]: https://img.shields.io/github/actions/workflow/status/buttress/collecterator/test.yml?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/buttress/collecterator.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/buttress/collecterator\n[link-actions]: https://github.com/buttress/collecterator/actions\n[link-downloads]: https://packagist.org/packages/buttress/collecterator\n[link-author]: https://github.com/korvinszanto\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuttress%2Fcollecterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuttress%2Fcollecterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuttress%2Fcollecterator/lists"}