Wednesday, October 31, 2012

Magicento – PhpStorm plugin for Magento development



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





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
Click Alt+M (Option+M) -> Create Module anywhere in a file to save time while creating Magento modules.

I hope this post will be useful for all Magento developers that use PhpStorm.