2017 © Pedro Peláez
 

library pinq

PHP Integrated Query - A real LINQ library for PHP

image

timetoogo/pinq

PHP Integrated Query - A real LINQ library for PHP

  • Wednesday, September 6, 2017
  • by TimeToogo
  • Repository
  • 27 Watchers
  • 420 Stars
  • 31,105 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 14 Forks
  • 3 Open issues
  • 16 Versions
  • 8 % Grown

The README.md

PHP Integrated Query - Official site

Build status Code quality Coverage Status Stable Release License, (*1)

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., (*2)

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'],
            ]; 
        });

More examples, (*3)

Installation

PINQ is compatible with >= PHP 7.3, (*4)

Install the package via composer:, (*5)

composer require timetoogo/pinq

The Versions

06/09 2017

dev-master

9999999-dev http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

06/09 2017

3.4.1

3.4.1.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

06/03 2017

3.4.0

3.4.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

30/08 2016

3.3.1

3.3.1.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

31/12 2015

3.3.0

3.3.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

08/07 2015

3.2.3

3.2.3.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

21/06 2015

3.2.2

3.2.2.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

20/06 2015

3.2.1

3.2.1.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

20/06 2015

3.2.0

3.2.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

22/04 2015

dev-datetimes-as-value-type

dev-datetimes-as-value-type http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

29/03 2015

3.1.0

3.1.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

21/09 2014

3.0.0

3.0.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated Query - A real LINQ library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

21/05 2014

2.1.1

2.1.1.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated query - A real Linq for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

07/05 2014

2.1.0

2.1.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated query - A real Linq for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

23/04 2014

2.0.0

2.0.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated query - A real Linq for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq

22/04 2014

1.0.0

1.0.0.0 http://www.github.com/TimeToogo/Pinq

PHP Integrated query - A real Linq for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Levin

collection query pinq