php-stubs / woocommerce-stubs
WooCommerce function and class declaration stubs for static analysis.
Installs: 844 866
Dependents: 24
Suggesters: 0
Security: 0
Stars: 62
Watchers: 4
Forks: 6
Open Issues: 0
Requires
- php-stubs/wordpress-stubs: ^5.3 || ^6.0
Requires (Dev)
- php: ~7.1 || ~8.0
- php-stubs/generator: ^0.8.0
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
- dev-master
- 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
- 4.7.1
- 4.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: 2023-03-21 22:28:32 UTC
README
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!