PHPackages                             mralaminahamed/woocommerce-product-addons-stubs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mralaminahamed/woocommerce-product-addons-stubs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mralaminahamed/woocommerce-product-addons-stubs
===============================================

WooCommerce Product Add-Ons function and class declaration stubs for static analysis.

00PHPCI failing

Since Jun 15Pushed 2w ago1 watchersCompare

[ Source](https://github.com/mralaminahamed/phpstan-woocommerce-product-addons-stubs)[ Packagist](https://packagist.org/packages/mralaminahamed/woocommerce-product-addons-stubs)[ RSS](/packages/mralaminahamed-woocommerce-product-addons-stubs/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

WooCommerce Product Add-Ons Stubs
=================================

[](#woocommerce-product-add-ons-stubs)

[![Latest Version](https://camo.githubusercontent.com/f5d2ea73d63b6d331015bde4afabfab7881f2307295b50acbb839c67d52e242d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d70726f647563742d6164646f6e732d73747562732e7376673f636f6c6f723d344343363145267374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/woocommerce-product-addons-stubs)[![Downloads](https://camo.githubusercontent.com/607b160dc020b05e8122b0bdffaee7b24c5790bef42dab34cc305ba248a68dde/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d70726f647563742d6164646f6e732d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/woocommerce-product-addons-stubs/stats)[![License](https://camo.githubusercontent.com/e084fc5a8b18835ce7daa16e9ff4a7d5a5267ac892e74057d8783c0984f8185f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d70726f647563742d6164646f6e732d73747562732e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![PHP Version](https://camo.githubusercontent.com/32fde9a5b494b4e277911874b514600809d494ea4c541011eaec83732eecda67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d70726f647563742d6164646f6e732d73747562732e7376673f7374796c653d666c61742d737175617265)](./composer.json)[![Tweet](https://camo.githubusercontent.com/7cc5e693bda53368a3427bda35ecf05dabe406c7ee29071de798d475dc2c8775/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54776565742d73686172652d3164613166323f7374796c653d666c61742d737175617265266c6f676f3d74776974746572)](https://twitter.com/intent/tweet?text=Check%20out%20WooCommerce%20Product%20Add-Ons%20Stubs%20for%20IDE%20completion%20and%20static%20analysis%20https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fwoocommerce-product-addons-stubs)

PHP stub declarations for the [WooCommerce Product Add-Ons](https://woocommerce.com/products/product-add-ons/) extension to enhance IDE completion and static analysis capabilities. Generated using [php-stubs/generator](https://github.com/php-stubs/generator) directly from the source code.

🚀 Features
----------

[](#-features)

- Complete function, class, and interface declarations
- Constant definitions for proper static analysis
- IDE autocompletion support
- PHPStan integration
- Regular updates with latest WooCommerce Product Add-Ons versions

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 7.4
- Composer for dependency management

📦 Installation
--------------

[](#-installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
# Install as a development dependency
composer require --dev mralaminahamed/woocommerce-product-addons-stubs

# Or specify a version
composer require --dev mralaminahamed/woocommerce-product-addons-stubs:^1.0
```

### Manual Installation

[](#manual-installation)

Download the stub files directly:

- [woocommerce-product-addons-stubs.php](https://raw.githubusercontent.com/mralaminahamed/woocommerce-product-addons-stubs/main/woocommerce-product-addons-stubs.php)
- [woocommerce-product-addons-constants-stubs.php](https://raw.githubusercontent.com/mralaminahamed/woocommerce-product-addons-stubs/main/woocommerce-product-addons-constants-stubs.php)

🔧 Basic Configuration
---------------------

[](#-basic-configuration)

To use these stubs with PHPStan or your IDE, see our [Usage Guide](./docs/usage.md) for detailed instructions.

🔍 Quick Usage Example
---------------------

[](#-quick-usage-example)

```
