shinepress/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis split into multiple files for increased performance.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/shinepress/woocommerce-stubs


README

Latest Version Downloads

Description

WooCommerce function and class declaration stubs for static analysis split into multiple files for increased performance. Automatically generated from the woocommerce-stubs.php stubfile in php-stubs/woocommerce-stubs.

Installation

The recommendend installation method is with composer:

$ composer require --dev shinepress/woocommerce-stubs

Note: only tagged versions are functional, dev-main will not provide any stubfiles.

Usage

Just register the autoloader as a bootstrap file in your phpstan config:

parameters:
    bootstrapFiles:
        - ./vendor/shinepress/woocommerce-stubs/autoload.php

Acknowledgements

The project is made possible by: