Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - TimeToogo/Pinq: PHP Integrated Query, a real LINQ library for PHP
PHP Integrated Query, a real LINQ library for PHP. Contribute to TimeToogo/Pinq development by creating an account on GitHub.
Visit SiteGitHub - TimeToogo/Pinq: PHP Integrated Query, a real LINQ library for PHP
PHP Integrated Query, a real LINQ library for PHP. Contribute to TimeToogo/Pinq development by creating an account on GitHub.
Powered by 0x5a.live 💗
PHP Integrated Query - Official site
What is PINQ?
Based off the .NET's LINQ (Language integrated query), PINQ unifies querying across arrays/iterators and external data sources, in a single readable and concise fluent API.
An example
$youngPeopleDetails = $people
->where(function ($row) { return $row['age'] <= 50; })
->orderByAscending(function ($row) { return $row['firstName']; })
->thenByAscending(function ($row) { return $row['lastName']; })
->take(50)
->indexBy(function ($row) { return $row['phoneNumber']; })
->select(function ($row) {
return [
'fullName' => $row['firstName'] . ' ' . $row['lastName'],
'address' => $row['address'],
'dateOfBirth' => $row['dateOfBirth'],
];
});
Installation
PINQ is compatible with >= PHP 7.3
Install the package via composer:
composer require timetoogo/pinq
PHP Resources
are all listed below.
GitHub - mvdbos/php-spider: A configurable and extensible PHP web spider
resource
~/github.com
resource
GitHub - xdebug/xdebug: Xdebug — Step Debugger and Debugging Aid for PHP
resource
~/github.com
resource
GitHub - azuyalabs/yasumi: The easy PHP Library for calculating holidays
resource
~/github.com
resource
GitHub - cweiske/jsonmapper: Map nested JSON structures onto PHP classes
resource
~/github.com
resource
Made with ❤️
to provide different kinds of informations and resources.