php-stubs / woocommerce-stubs
WooCommerce function and class declaration stubs for static analysis.
Requires
- php-stubs/wordpress-stubs: ^5.3 || ^6.0 || ^7.0
Requires (Dev)
- php: ~7.1 || ~8.0
- php-stubs/generator: ^0.9.0
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v11.1.0
- v11.0.1
- v11.0.0
- v10.9.4
- v10.9.2
- v10.9.1
- v10.9.0
- v10.8.1
- v10.8.0
- v10.7.0
- v10.6.2
- v10.6.1
- v10.6.0
- v10.5.3
- v10.5.2
- v10.5.1
- v10.5.0
- v10.4.4
- v10.4.3
- v10.4.2
- v10.4.0
- v10.3.8
- v10.3.7
- v10.3.6
- v10.3.5
- v10.3.4
- v10.3.0
- v10.2.4
- v10.2.3
- v10.2.2
- v10.2.1
- v10.2.0
- v10.1.4
- v10.1.3
- v10.1.2
- v10.1.1
- v10.1.0
- v10.0.6
- v10.0.5
- v10.0.4
- v10.0.3
- v10.0.2
- v9.9.5
- v9.9.4
- v9.9.3
- v9.8.5
- v9.8.2
- v9.8.1
- v9.7.1
- v9.7.0
- v9.6.2
- v9.5.2
- v9.5.0
- v9.4.3
- v9.4.2
- v9.4.1
- v9.4.0
- v9.3.4
- v9.3.3
- v9.3.1
- v9.2.3
- v9.2.1
- v9.1.4
- v9.1.0
- v9.0.2
- v9.0.0
- v8.9.1
- v8.9.0
- v8.8.3
- v8.8.2
- v8.8.1
- v8.8.0
- v8.7.0
- v8.6.1
- v8.6.0
- v8.5.2
- v8.5.1
- v8.5.0
- v8.4.0
- v8.3.1
- v8.3.0
- v8.2.2
- v8.2.0
- v8.1.1
- v8.1.0
- v8.0.3
- v8.0.1
- v7.9.0
- v7.8.2
- v7.8.1
- v7.8.0
- v7.7.2
- v7.7.1
- v7.7.0
- v7.6.1
- v7.6.0
- v7.5.1
- v7.5.0
- v7.4.1
- v7.4.0
- v7.3.0
- v7.2.3
- v7.2.1
- v7.2.0
- v7.1.1
- v7.1.0
- v7.0.1
- v7.0.0
- v6.9.4
- v6.9.3
- v6.9.0
- v6.8.2
- v6.8.0
- v6.7.0
- v6.6.1
- v6.6.0
- v6.5.1
- v6.4.1
- v6.3.1
- v6.2.2
- v6.1.2
- v6.0.1
- v6.0.0
- v5.9.1
- v5.9.0
- v5.8.1
- v5.8.0
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.2
- v5.6.1
- v5.6.0
- v5.5.4
- v5.5.3
- v5.5.2
- v5.5.0
- v5.4.1
- v5.4.0
- v5.3.0
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.0
- v5.0.0
- v4.9.2
- v4.9.1
- v4.9.0
- v4.8.0
- v4.7.1
- v4.7.0
- v4.6.2
- v4.6.1
- v4.6.0
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.1
- v4.4.0
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.1
- v4.1.0
- v4.0.1
- v4.0.0
- v3.9.3
- v3.9.2
- v3.9.1
- v3.9.0
- v3.8.1
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.5
- v3.6.4
- v3.6.3
- v3.6.2
- v3.6.1
- v3.6.0
- v3.5.8
- v3.5.7
- v3.5.6
- v3.5.5
- v3.5.4
- v3.5.3
- v3.5.2
- v3.5.1
- v3.5.0
This package is auto-updated.
Last update: 2026-09-09 03:58:23 UTC
README
Important
Need help?
I build and maintain reliable web applications, with a focus on PHP, WordPress, and software quality.
If this package helps your team, feel free to reach out for consulting, development work, or sponsorship.
WooCommerce Stubs
This package provides stub declarations for the WooCommerce plugin 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.
Requirements
- PHP >=7.1
Installation
Require this package as a development dependency with Composer.
composer require --dev php-stubs/woocommerce-stubs
Alternatively you may download woocommerce-stubs.php directly.
Usage in PHPStan
Include stubs in PHPStan configuration file.
parameters: bootstrapFiles: - vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php #- vendor/php-stubs/woocommerce-stubs/woocommerce-packages-stubs.php
Support package maintenance
Please consider supporting this work.
Thank you!