https://github.com/mralaminahamed/phpstan-woocommerce-product-addons-stubs
WooCommerce Product Add-Ons function and class declaration stubs for static analysis.
https://github.com/mralaminahamed/phpstan-woocommerce-product-addons-stubs
Last synced: 3 months ago
JSON representation
WooCommerce Product Add-Ons function and class declaration stubs for static analysis.
- Host: GitHub
- URL: https://github.com/mralaminahamed/phpstan-woocommerce-product-addons-stubs
- Owner: mralaminahamed
- License: mit
- Created: 2024-05-14T13:57:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-14T14:02:44.000Z (about 1 year ago)
- Last Synced: 2025-01-24T19:36:44.051Z (5 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WooCommerce Product Add-Ons Stubs
[](https://packagist.org/packages/mralaminahamed/woocommerce-product-addons-stubs/stats)
[](https://packagist.org/packages/mralaminahamed/woocommerce-product-addons-stubs)
[](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-woocommerce-product-addons-stubs&url=I%20use%20mralaminahamed%2Fphpstan-woocommerce-product-addons-stubs%20for%20IDE%20completion%20and%20static%20analysis)
[](https://app.travis-ci.com/mralaminahamed/phpstan-woocommerce-product-addons-stubs)These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).
## Requirements
- PHP >=7.1
## Installation
Require this package as a development dependency with [Composer](https://getcomposer.org).
```bash
composer require --dev mralaminahamed/woocommerce-product-addons-stubs
```Alternatively you may download `woocommerce-product-addons-stubs.php` directly.
## Usage in PHPStan
Include stubs in PHPStan configuration file.
```yaml
parameters:
bootstrapFiles:
- vendor/mralaminahamed/woocommerce-product-addons-stubs/woocommerce-product-addons-constants-stubs.php
- vendor/mralaminahamed/woocommerce-product-addons-stubs/woocommerce-product-addons-stubs.php
```