PHPackages                             elephox/pie - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. elephox/pie

Abandoned → [elephox/collection](/?search=elephox%2Fcollection)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

elephox/pie
===========

Elephox PIE library.

00PHP

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/elephox-dev/pie)[ Packagist](https://packagist.org/packages/elephox/pie)[ RSS](/packages/elephox-pie/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PIE - PHP Iterables Enhanced
============================

[](#pie---php-iterables-enhanced)

This library (or rather module) was inspired by [C#s LINQ library](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/).

However, it is not a full-featured LINQ library. It is only a small subset of the functionality since PHP cannot fully support all the syntactic sugar. For example the main feature of LINQ, SQL-like syntax directly in source, is not supported since it would require you to compile/transpile your code.

The main idea however is to provide a way to iterate over a collection of objects in a more natural way like you can do with `IEnumerable`s in C#.

Examples
--------

[](#examples)

```
