Awesome Open Source
Awesome Open Source

collector header

GitHub Workflow Status (master) Total Downloads Latest Version

Collector - A collection's plugin for PhpStorm

This plugin adds support for Laravel Collections.

It contains a bunch of handy refactorings for making your collections better. It can also convert normal PHP statements into collections.


The plugin has no stable version, only manual and EAP is possible.

  • Using IDE built-in plugin system:

    Preferences > Plugins > Marketplace > Search for "Collector" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Preferences > Plugins > > Install plugin from disk...


⚠️ The inspections might be disabled by default! Go to preferences for enabling them.

All the features are added as inspections in PhpStorm, this means you can disable the ones you don't like or change how severe the warning are on them.

For example, by default refactoring foreach to collection is not highlighting the text.
However, if you would like to enforce yourself to never use foreach, you can change the severity to error.



foreach to collection


array_map to collection


map(...)->flatten(1) to flatMap


Remove nested collections


Closure to arrow functions


where(...)->first() to firstWhere


where(...)->isNotEmpty() to contains



Special thanks to Caneco for the logo

Plugin based on the IntelliJ Platform Plugin Template.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Plugin (113,719
Kotlin (47,557
Laravel (40,949
Intellij (5,392
Collector (3,186
Refactoring (2,074
Phpstorm (1,022
Intellij Plugin (814
Phpstorm Plugin (75
Laravel Collections (15