Magicento 2



This post is intended for all Magento developers who use PhpStorm as their IDE. It’s about Magicento – free PhpStorm plugin for Magento developers.
Features in Magicento:

Magento 2.4

1. Goto

Magicento extends PhpStorm goto functionality in a way that you can now use goto also for factory methods and templates. You can go to destination class from factory method by using middle click (Ctrl+click, Ctrl+B).

Also, at the same way, you can go to any phtml template from layout xml file.

Magento 2 Download

Clicking at any Mage::dispatchEvent call brings you to observer definition for corresponding event.

2. Class recognition for objects

You can use Alt+M (Option+M) to assign class for certain object that is defined through factory method. That is very useful for code completion.

3. Creating modules

  • Phpxdebug 2.5.x or later (development environments only; can have an adverse effect on performance) There is a known issue with xdebug that can affect Magento installations or access to the storefront or Magento Admin after installation.
  • That new extension is really nice. I am wondering how good it works, I gave it to a couple of the guys at work here, who use Eclipse. I say, that this is subjective.
  • Remove Magicento1 shortcut from PhpStorm settings keymap, leave only the shortcut for Magicento2 (Magicento2 will use ALT+M too, you can also change the shortcuts, but Magicento2 will allow you to use the same shortcut for both Magicento1 and 2) For Magento1 projects remember to use ALT+M Disable Magicento2 so you can use Magicento1 there.
  • Built in features: In terms of features, Magento 2 is the successor of Magento 1. It means that you do get tons of features, too – and some Magento 2 specific cherries on the top of the cake. See comparison here. Customisability: Being a brand new platform under the same name, Magento 2 is not that easy and obvious for Magento 1.

Magicento version: 2.9.1. The text was updated successfully, but these errors were encountered: Copy link Owner enriquepiatti commented Apr 24.

Click Alt+M (Option+M) -> Create Module anywhere in a file to save time while creating Magento modules.

Magicento

More about Magicento features and installation you can find at official Magicento website.
I hope this post will be useful for all Magento developers that use PhpStorm.

We don’t normally do list posts at C3, but there are so many utilities that we find indispensable as developers that we ended up with a whole goody-bag full. Enjoy! And let us know in the comments if there are ones that you couldn’t live without but we’ve missed.

In no particular order:

1. n98-magerun for M1 / M2

Magicento

I lied. This is first for a reason. Command line tools for Magento 1 and Magento 2: “The swiss army knife for Magento developers, sysadmins and devops.” It was such a brilliant tool for Magento 1 that Magento incorporated something similar into Magento 2 (though n98-magerun2 still adds more functionality so it’s worth grabbing!)

2. C3 Environment Banner for M1 / M2

The number of times live sites would have been accidentally changed is too many to count admit to. This extension adds coloured banners to the frontend and the admin panel to let you know visually if you are on a development, staging, preview or production site. It is guaranteed not to display anything on the frontend for production (or if it does not find a named environment). It picks up the current environment from the server variable “APPLICATION_ENV”. There are versions for Magento 1 and Magento 2.

3. Mage Security Patcher

Magento

In fact, the Mage Security Council have a number of super-useful tools that aid with maintaining the security of Magento, but we’ve picked this one in particular as it saves so much time when applying patches. And particularly in Magento 1 you need to apply patches regularly. The great thing about this tool is that it is rather more intelligent than a straight diff patch – it will also update template files in custom themes where it can.

4. Scope hints for M1 / M2

Visual reminder if there is any specialisation of system config, product or category data. For example, if you are looking the web settings in system config at the default scope and there are specialised values to give different websites their own domain, those settings will be highlighted for you in the default scope so that you know that there is more detail to drill down to. I know! Good, isn’t it?

5. Magicento

Magicento Activate

PHPStorm plugin for Magento developers. If you use PHPStorm (that would probably be hint 5b – PHPStorm is pretty great too), this invaluable plugin for both Magento 1 and 2 (sadly, you have to purchase one for each) adds understanding for factories, template paths etc. that PHPStorm by itself would not be able to follow or autocomplete. It does much more than this, but that’s a pretty good start.

That’s our list! We’d love to hear from you what your top Magento tool would be.