{"id":13624081,"url":"https://github.com/TimeToogo/Pinq","last_synced_at":"2025-04-15T20:33:15.280Z","repository":{"id":15496793,"uuid":"18230680","full_name":"TimeToogo/Pinq","owner":"TimeToogo","description":"PHP Integrated Query, a real LINQ library for PHP","archived":true,"fork":false,"pushed_at":"2022-05-03T14:53:29.000Z","size":3913,"stargazers_count":462,"open_issues_count":3,"forks_count":19,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-11T11:53:23.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://timetoogo.github.io/Pinq/","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/TimeToogo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-03-29T00:30:11.000Z","updated_at":"2025-01-24T09:08:28.000Z","dependencies_parsed_at":"2022-08-25T16:21:54.742Z","dependency_job_id":null,"html_url":"https://github.com/TimeToogo/Pinq","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeToogo%2FPinq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeToogo%2FPinq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeToogo%2FPinq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeToogo%2FPinq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimeToogo","download_url":"https://codeload.github.com/TimeToogo/Pinq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148324,"owners_count":21220514,"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.647Z","updated_at":"2025-04-15T20:33:14.749Z","avatar_url":"https://github.com/TimeToogo.png","language":"PHP","readme":"PHP Integrated Query - [Official site](http://timetoogo.github.io/Pinq/)\n========================================================================\n\n[![Build status](https://img.shields.io/travis/TimeToogo/Pinq/master.svg?style=flat-square)](https://travis-ci.org/TimeToogo/Pinq)\n[![Code quality](https://img.shields.io/scrutinizer/g/TimeToogo/Pinq.svg?style=flat-square)](https://scrutinizer-ci.com/g/TimeToogo/Pinq)\n[![Coverage Status](https://img.shields.io/coveralls/TimeToogo/Pinq/master.svg?style=flat-square)](https://coveralls.io/r/TimeToogo/Pinq?branch=master)\n[![Stable Release](https://img.shields.io/packagist/v/TimeToogo/Pinq.svg?style=flat-square)](https://packagist.org/packages/timetoogo/pinq)\n[![License](https://img.shields.io/github/license/TimeToogo/Pinq.svg?style=flat-square)](https://packagist.org/packages/timetoogo/pinq)\n\nWhat is PINQ?\n=============\n\nBased off the .NET's [LINQ (Language integrated query)](http://msdn.microsoft.com/en-us/library/bb397926.aspx), \nPINQ unifies querying across [arrays/iterators](http://timetoogo.github.io/Pinq/examples.html) and [external data sources](http://timetoogo.github.io/Pinq/query-provider.html),\nin a single readable and concise [fluent API](http://timetoogo.github.io/Pinq/api.html).\n\nAn example\n==========\n\n```php\n$youngPeopleDetails = $people\n        -\u003ewhere(function ($row) { return $row['age'] \u003c= 50; })\n        -\u003eorderByAscending(function ($row) { return $row['firstName']; })\n        -\u003ethenByAscending(function ($row) { return $row['lastName']; })\n        -\u003etake(50)\n        -\u003eindexBy(function ($row) { return $row['phoneNumber']; })\n        -\u003eselect(function ($row) { \n            return [\n                'fullName'    =\u003e $row['firstName'] . ' ' . $row['lastName'],\n                'address'     =\u003e $row['address'],\n                'dateOfBirth' =\u003e $row['dateOfBirth'],\n            ]; \n        });\n```\n\n[More examples](http://timetoogo.github.io/Pinq/examples.html)\n\nInstallation\n============\n\nPINQ is compatible with \u003e= PHP 7.3\n\nInstall the package via composer:\n\n```\ncomposer require timetoogo/pinq\n```\n\n","funding_links":[],"categories":["数据结构和存储","数据结构和存储 Data Structure and Storage","目录","Table of Contents","PHP","Data Structure and Storage","Libraries","Implementations","数据结构和存储( Data Structure and Storage )"],"sub_categories":["数据结构和存储 Data Structure and Storage","Data Structure and Storage","[PHP](https://github.com/php/php-src)","Miscs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTimeToogo%2FPinq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTimeToogo%2FPinq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTimeToogo%2FPinq/lists"}