php-stubs / woocommerce-stubs
WooCommerce function and class declaration stubs for static analysis.
Installs: 1 800 537
Dependents: 52
Suggesters: 0
Security: 0
Stars: 82
Watchers: 4
Forks: 10
Open Issues: 1
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
- 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
- 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: 2024-12-17 03:49:28 UTC
README
Important
Hello everyone! This is Viktor who runs the php-stubs organization. I am planning to stop contributing to the WordPress ecosystem because it is extremely difficult and I do not earn (min) €100/month.
Please support my work to avoid abandoning this package.
Thank you!
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!