{"id":13624049,"url":"https://github.com/cakephp/collection","last_synced_at":"2025-06-25T23:07:20.873Z","repository":{"id":20016587,"uuid":"23284311","full_name":"cakephp/collection","owner":"cakephp","description":"[READ-ONLY] Collection library in CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp","archived":false,"fork":false,"pushed_at":"2025-05-17T03:09:01.000Z","size":477,"stargazers_count":89,"open_issues_count":0,"forks_count":6,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-05-17T04:19:58.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakephp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2014-08-24T15:20:43.000Z","updated_at":"2025-01-31T08:20:12.000Z","dependencies_parsed_at":"2023-01-13T20:43:45.087Z","dependency_job_id":"b1f76b9d-1ee9-40c4-90a1-d799a160d650","html_url":"https://github.com/cakephp/collection","commit_stats":{"total_commits":342,"total_committers":39,"mean_commits":8.76923076923077,"dds":0.7046783625730995,"last_synced_commit":"6bf68000a8d1eba9bb75534ae05d594cf278357b"},"previous_names":[],"tags_count":306,"template":false,"template_full_name":null,"purl":"pkg:github/cakephp/collection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fcollection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fcollection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fcollection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fcollection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakephp","download_url":"https://codeload.github.com/cakephp/collection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fcollection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261967132,"owners_count":23237663,"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-08-01T21:01:38.200Z","updated_at":"2025-06-25T23:07:20.846Z","avatar_url":"https://github.com/cakephp.png","language":"PHP","readme":"[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/collection.svg?style=flat-square)](https://packagist.org/packages/cakephp/collection)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.txt)\n\n# CakePHP Collection Library\n\nThe collection classes provide a set of tools to manipulate arrays or Traversable objects.\nIf you have ever used underscore.js, you have an idea of what you can expect from the collection classes.\n\n## Usage\n\nCollections can be created using an array or Traversable object.  A simple use of a Collection would be:\n\n```php\nuse Cake\\Collection\\Collection;\n\n$items = ['a' =\u003e 1, 'b' =\u003e 2, 'c' =\u003e 3];\n$collection = new Collection($items);\n\n// Create a new collection containing elements\n// with a value greater than one.\n$overOne = $collection-\u003efilter(function ($value, $key, $iterator) {\n    return $value \u003e 1;\n});\n```\n\nThe `Collection\\CollectionTrait` allows you to integrate collection-like features into any Traversable object\nyou have in your application as well.\n\n## Documentation\n\nPlease make sure you check the [official documentation](https://book.cakephp.org/4/en/core-libraries/collections.html)\n","funding_links":[],"categories":["目录","Table of Contents","PHP","数据结构和存储 Data Structure and Storage","数据结构和存储( Data Structure and Storage )"],"sub_categories":["数据结构和存储 Data Structure and Storage","Data Structure and Storage"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Fcollection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakephp%2Fcollection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Fcollection/lists"}