All Projects → olivernybroe → Collector Intellij

olivernybroe / Collector Intellij

A PhpStorm plugin for refactoring to collections

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Collector Intellij

Idea Php Laravel Plugin
Laravel Framework Plugin for PhpStorm / IntelliJ IDEA
Stars: ✭ 537 (+371.05%)
Mutual labels:  laravel, intellij, intellij-plugin, phpstorm
Magento2 Phpstorm Plugin
PHPStorm Plugin for Magento 2
Stars: ✭ 294 (+157.89%)
Mutual labels:  hacktoberfest, intellij, intellij-plugin, phpstorm
Phpinspectionsea
A Static Code Analyzer for PHP (a PhpStorm/Idea Plugin)
Stars: ✭ 1,211 (+962.28%)
Mutual labels:  intellij, intellij-plugin, phpstorm
referencer-plugin
"Referencer" plugin for Jetbrains IDEs
Stars: ✭ 20 (-82.46%)
Mutual labels:  intellij, phpstorm, intellij-plugin
Yii2support
Yii2 Support for PhpStorm / IntelliJ IDEA
Stars: ✭ 280 (+145.61%)
Mutual labels:  intellij, intellij-plugin, phpstorm
Laravel Whoops Editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Stars: ✭ 83 (-27.19%)
Mutual labels:  laravel, intellij, phpstorm
dummytext-plugin
"Dummy Text Generator" plugin for Jetbrains IDEs
Stars: ✭ 31 (-72.81%)
Mutual labels:  intellij, phpstorm, intellij-plugin
idea-php-shopware-plugin
Shopware Plugin for PhpStorm which extends Symfony Plugin
Stars: ✭ 50 (-56.14%)
Mutual labels:  intellij, phpstorm, intellij-plugin
Idea Php Toolbox
Collections of tools and improvements to make PhpStorm a little bit better
Stars: ✭ 147 (+28.95%)
Mutual labels:  intellij, intellij-plugin, phpstorm
Svelte Intellij
Svelte components in WebStorm and friends
Stars: ✭ 345 (+202.63%)
Mutual labels:  intellij, intellij-plugin, phpstorm
Idea Php Symfony2 Plugin
IntelliJ IDEA / PhpStorm Symfony Plugin
Stars: ✭ 797 (+599.12%)
Mutual labels:  intellij, intellij-plugin, phpstorm
interstellar
Dark editor theme for JetBrains IDEs
Stars: ✭ 26 (-77.19%)
Mutual labels:  intellij, phpstorm, intellij-plugin
intellij-neos
Support for the Neos CMS in Intellij IDEA / PhpStorm
Stars: ✭ 37 (-67.54%)
Mutual labels:  intellij, phpstorm, intellij-plugin
idea-php-typo3-plugin
TYPO3 CMS Plugins for IntelliJ IDEA / PhpStorm
Stars: ✭ 93 (-18.42%)
Mutual labels:  intellij, phpstorm, intellij-plugin
Idea Php Annotation Plugin
Add PHP annotation support for PhpStorm and IntelliJ
Stars: ✭ 216 (+89.47%)
Mutual labels:  intellij, intellij-plugin, phpstorm
idea-php-advanced-autocomplete
Plugin for PhpStorm IDE. Adds auto-completion support for various built-in PHP functions, where parameter is a string literal.
Stars: ✭ 57 (-50%)
Mutual labels:  intellij, phpstorm, intellij-plugin
Idea Php Generics Plugin
Support generics types in PhpStorm via psalm / phpstan docblock
Stars: ✭ 146 (+28.07%)
Mutual labels:  intellij, intellij-plugin, phpstorm
Idea Php Drupal Symfony2 Bridge
PhpStorm plugin to support Symfony components inside Drupal 8
Stars: ✭ 34 (-70.18%)
Mutual labels:  intellij, intellij-plugin, phpstorm
Runconfigurationasaction
Provides a way to use IntelliJ run configurations as buttons
Stars: ✭ 17 (-85.09%)
Mutual labels:  intellij, intellij-plugin, phpstorm
Phpstorm Laravel Live Templates
Laravel Live Templates for PhpStorm
Stars: ✭ 1,157 (+914.91%)
Mutual labels:  laravel, intellij, phpstorm

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.

Installation

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...

Configuration

⚠️ 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.

inspection-settings

Features

foreach to collection

foreach-example

array_map to collection

array_map-example

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

flatmap-example

Remove nested collections

recursive-collection-example

Closure to arrow functions

closure-to-arrow-example

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

where-first-to-firstWhere-example

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

where-isNotEmpty-to-contains-example

Credits

Special thanks to Caneco for the logo ✨


Plugin based on the IntelliJ Platform Plugin Template.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].