Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julienbourdeau/phpstorm-prestashop-autocomplete
Makes PhpStorm autocomplete work with PrestaShop
https://github.com/julienbourdeau/phpstorm-prestashop-autocomplete
Last synced: 12 days ago
JSON representation
Makes PhpStorm autocomplete work with PrestaShop
- Host: GitHub
- URL: https://github.com/julienbourdeau/phpstorm-prestashop-autocomplete
- Owner: julienbourdeau
- Created: 2015-02-13T17:18:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T08:36:51.000Z (over 7 years ago)
- Last Synced: 2024-11-01T22:50:20.954Z (19 days ago)
- Language: PHP
- Homepage: http://www.sigerr.org/misc/phpstorm-get-autocomplete-prestashop/
- Size: 125 KB
- Stars: 58
- Watchers: 9
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PhpStorm PrestaShop Autocomplete
================================![phpstorm-prestashop-autocomplete-screenshot.png](/img1.png?raw=true "Follow this tutorial and this is what you'll get")
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:
```php
class AddressCore extends ObjectModel
{
// ...
}
```## How to get autocomplete with PrestaShop
1. Download the file autocomplete.php (or clone this repo)
1. Add the file to your project as an "External Library"
1. Double click "External Libraries"
1. Click on '+'
1. Select the folder containing autocomplete.php![how-to-get-phpstorm-autocomplete-prestashop.png](/img2.png?raw=true "How to get autocomplete with PhpStorm and PrestaShop")
## How It Works
The file autocomplete.php will extend each Core class and use the correct name.
```php
class Address extends AddressCore {}
```### Credits
This is based on an original idea from [dkarvounaris](https://github.com/dkarvounaris/PHPStorm-CC-PrestaShop)