Skip to content

julienbourdeau/PhpStorm-PrestaShop-Autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages