stancer/php-stubs-prestashop

PrestaShop function and class declaration stubs for static analysis.


README

This package provides stub declarations for PrestaShop functions, classes and interfaces. These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like PHPStan.

The stubs are generated directly from the source using php-stubs/generator.

Installation

Require this package as a development dependency with Composer.

composer require --dev stancer/php-stubs-prestashop

Usage in PHPStan

Include stubs in PHPStan configuration file.

parameters:
  scanDirectories:
    - vendor/stancer/php-stubs-prestashop/stubs/