All Projects → julienbourdeau → Phpstorm Prestashop Autocomplete

julienbourdeau / Phpstorm Prestashop Autocomplete

Makes PhpStorm autocomplete work with PrestaShop

PhpStorm PrestaShop Autocomplete

phpstorm-prestashop-autocomplete-screenshot.png

Les explications en français sont disponibles ici: http://blog.julienbourdeau.com/geek/phpstorm-lautocompletion-avec-prestashop/

Why do I need this ?

If you use PhpStorm and PrestaShop you probably noticed that you can't get your IDE to autocomplete everything. PrestaShop is designed to be overridden, and every class from the core is suffixed with 'Core'.

For example, Address class is actually declared this way:

class AddressCore extends ObjectModel
{
  // ...
}

How to get autocomplete with PrestaShop

  1. Download the file autocomplete.php (or clone this repo)
  2. Add the file to your project as an "External Library"
  3. Double click "External Libraries"
  4. Click on '+'
  5. Select the folder containing autocomplete.php

how-to-get-phpstorm-autocomplete-prestashop.png

How It Works

The file autocomplete.php will extend each Core class and use the correct name.

class Address extends AddressCore {}

Credits

This is based on an original idea from dkarvounaris

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