PHPackages                             superbig/craft3-collections - 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. superbig/craft3-collections

Abandoned → [craftcms/cms](/?search=craftcms%2Fcms)ArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

superbig/craft3-collections
===========================

Use Laravel Collections in Craft

3.0.0(4y ago)2429.2k3MITPHP

Since Nov 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sjelfull/craft3-collections)[ Packagist](https://packagist.org/packages/superbig/craft3-collections)[ RSS](/packages/superbig-craft3-collections/feed)WikiDiscussions master Synced yesterday

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

> **Note: This plugin has been abandoned as Craft 4 includes Collections support.**

Collections plugin for Craft CMS 3.x
====================================

[](#collections-plugin-for-craft-cms-3x)

Use Laravel Collections in Craft

[![Screenshot](resources/img/icon.png)](resources/img/icon.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require superbig/craft3-collections

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Collections.

Collections Overview
--------------------

[](#collections-overview)

Here is some good inspiration on what you can do with Collections:

- [Collections documentation](https://laravel.com/docs/5.5/collections)
- [Laravel Collections: PHP Arrays On Steroids](https://scotch.io/tutorials/laravel-collections-php-arrays-on-steroids)
- [Laravel Collections Examples on GitHub](https://github.com/fakiolinho/laravel-collections-examples)
- [Laravel Collections “when” Method](https://laravel-news.com/laravel-collections-when-method)
- [Code Bright: Eloquent Collections](https://daylerees.com/codebright-eloquent-collections/)
- [Refactoring To Collection](https://adamwathan.me/refactoring-to-collections/)
- [10 less-known (but awesome!) Laravel Collections methods](http://laraveldaily.com/10-less-known-but-awesome-laravel-collections-methods/)

Configuring Collections
-----------------------

[](#configuring-collections)

Add your macros to the config file:

```
