PHPackages                             cunningsoft/generic-list - 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. cunningsoft/generic-list

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cunningsoft/generic-list
========================

This library provides the tools needed to create custom iterables without the need to repeat all the boilerplate code.

0.1.1(6y ago)0997[1 issues](https://github.com/cunningsoft/generic-list/issues)MITPHPPHP ^7.3CI failing

Since Sep 22Pushed 6y ago2 watchersCompare

[ Source](https://github.com/cunningsoft/generic-list)[ Packagist](https://packagist.org/packages/cunningsoft/generic-list)[ RSS](/packages/cunningsoft-generic-list/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Generic List
============

[](#generic-list)

This library provides the tools needed to create custom iterables without the need to repeat all the boilerplate code.

[![Minimum PHP version: 7.2.9](https://camo.githubusercontent.com/34bcca9a70e5c68bb8f73aad4fb36b0403331e34924be788542475681539d12d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e332532422d626c75652e737667)](https://packagist.org/packages/cunningsoft/generic-list)[![Build Status](https://camo.githubusercontent.com/7b462e5ed2b960cdda464695a4994366509c7cbe1a093650ca77505500d2febb/68747470733a2f2f7472617669732d63692e6f72672f63756e6e696e67736f66742f67656e657269632d6c6973742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cunningsoft/generic-list)[![Code Coverage](https://camo.githubusercontent.com/942e5c5976e7e327fdbc5cafd8396e41a2d7e72976c36dae95ca95f70c13acde/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63756e6e696e67736f66742f67656e657269632d6c6973742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cunningsoft/generic-list/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/eb4e46f383af615da0449b6a60928947ea4b42b0fd7a7c715bdb9e24355e8ed1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63756e6e696e67736f66742f67656e657269632d6c6973742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cunningsoft/generic-list/?branch=master)

Installation
------------

[](#installation)

Install the library via [composer](https://getcomposer.org/):

```
php composer.phar require cunningsoft/generic-list
```

Usage
-----

[](#usage)

### Unsorted Lists

[](#unsorted-lists)

Create a custom list class (for example for Users):

```
