shinepress / woocommerce-packages-stubs
WooCommerce packages function and class declaration stubs for static analysis split into multiple files for increased performance.
Package info
github.com/shinepress/woocommerce-packages-stubs
pkg:composer/shinepress/woocommerce-packages-stubs
This package is auto-updated.
Last update: 2026-06-26 02:15:33 UTC
README
Description
WooCommerce packages function and class declaration stubs for static analysis split into multiple files for increased performance. Automatically generated from the woocommerce-packages-stubs.php stubfile in php-stubs/woocommerce-stubs.
Installation
The recommendend installation method is with composer:
$ composer require --dev shinepress/woocommerce-packages-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-packages-stubs/autoload.php
Acknowledgements
The project is made possible by: