{"id":14966447,"url":"https://github.com/yiisoft/yii2-collection","last_synced_at":"2025-04-13T10:44:49.739Z","repository":{"id":56007644,"uuid":"93503044","full_name":"yiisoft/yii2-collection","owner":"yiisoft","description":"Collection extension for Yii 2","archived":false,"fork":false,"pushed_at":"2024-01-31T08:51:57.000Z","size":67,"stargazers_count":67,"open_issues_count":10,"forks_count":18,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-04-10T21:27:26.004Z","etag":null,"topics":["collection","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["cebe"],"open_collective":"yiisoft"}},"created_at":"2017-06-06T09:53:15.000Z","updated_at":"2024-09-23T14:34:13.000Z","dependencies_parsed_at":"2023-12-13T03:35:40.498Z","dependency_job_id":"ca58e69e-73f7-4d5a-8c84-220d1fdd36e0","html_url":"https://github.com/yiisoft/yii2-collection","commit_stats":{"total_commits":32,"total_committers":10,"mean_commits":3.2,"dds":0.71875,"last_synced_commit":"ebcdcdf5586e5f5eb312d538f7754032b2f168aa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii2-collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248702216,"owners_count":21148114,"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":["collection","yii2","yii2-extension"],"created_at":"2024-09-24T13:36:23.995Z","updated_at":"2025-04-13T10:44:49.716Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://github.com/sponsors/cebe","https://opencollective.com/yiisoft"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eActiveRecord Collection Extension for Yii 2\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis extension provides a generic data collection as well as a collection for the ActiveRecord DB layer of Yii 2.\n\n**Development is currently in experimental state. It is not ready for production use and may change significantly.**\n\nFor license information check the [LICENSE](LICENSE.md)-file.\n\nDocumentation is at [docs/guide/README.md](docs/guide/README.md).\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-collection/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-collection)\n[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-collection/downloads.png)](https://packagist.org/packages/yiisoft/yii2-collection)\n[![Build Status](https://travis-ci.org/yiisoft/yii2-collection.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-collection)\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist yiisoft/yii2-collection\n```\n\nor add\n\n```json\n\"yiisoft/yii2-collection\": \"~1.0.0\"\n```\n\nto the require section of your composer.json.\n\n\nConfiguration\n-------------\n\nTo use this extension, you have to attach the `yii\\collection\\CollectionBehavior` to the `ActiveQuery` instance of\nyour `ActiveRecord` classes by overriding the `find()` method:\n\n```php\n/**\n * {@inheritdoc}\n * @return \\yii\\db\\ActiveQuery|\\yii\\collection\\CollectionBehavior\n */\npublic static function find()\n{\n    $query = parent::find();\n    $query-\u003eattachBehavior('collection', \\yii\\collection\\CollectionBehavior::class);\n    return $query;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii2-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-collection/lists"}