PHPackages                             mralaminahamed/woocommerce-subscriptions-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-subscriptions-stubs

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

mralaminahamed/woocommerce-subscriptions-stubs
==============================================

WooCommerce Subscriptions function and class declaration stubs for static analysis.

06PHPCI failing

Since Jun 15Pushed 2w ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

WooCommerce Subscriptions Stubs
===============================

[](#woocommerce-subscriptions-stubs)

[![Latest Version](https://camo.githubusercontent.com/fff4190cc265d47866a8a05ea4ef2242d53115140fc51a3e154eee302e332084/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d737562736372697074696f6e732d73747562732e7376673f636f6c6f723d344343363145267374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/woocommerce-subscriptions-stubs)[![Downloads](https://camo.githubusercontent.com/74176b254666413eab6d1859a1b2fff82e55836eda08748fac1d0c557c3e008f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d737562736372697074696f6e732d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/woocommerce-subscriptions-stubs/stats)[![License](https://camo.githubusercontent.com/4f39023ecd380ae553d2317555fef1e6a5a78e975ac9a963c74617550a3eace3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d737562736372697074696f6e732d73747562732e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![PHP Version](https://camo.githubusercontent.com/5b3932672029ed624b2cdc178160543e148b3b4d655a65b75891880fe6a177b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72616c616d696e6168616d65642f776f6f636f6d6d657263652d737562736372697074696f6e732d73747562732e7376673f7374796c653d666c61742d737175617265)](./composer.json)[![Tweet](https://camo.githubusercontent.com/7cc5e693bda53368a3427bda35ecf05dabe406c7ee29071de798d475dc2c8775/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54776565742d73686172652d3164613166323f7374796c653d666c61742d737175617265266c6f676f3d74776974746572)](https://twitter.com/intent/tweet?text=Check%20out%20WooCommerce%20Subscriptions%20Stubs%20for%20IDE%20completion%20and%20static%20analysis%20https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-woocommerce-subscriptions-stubs)

PHP stub declarations for the [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/) 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 Subscriptions 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-subscriptions-stubs

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

### Manual Installation

[](#manual-installation)

Download the stub files directly:

- [woocommerce-subscriptions-stubs.php](https://raw.githubusercontent.com/mralaminahamed/phpstan-woocommerce-subscriptions-stubs/main/woocommerce-subscriptions-stubs.php)
- [woocommerce-subscriptions-constants-stubs.php](https://raw.githubusercontent.com/mralaminahamed/phpstan-woocommerce-subscriptions-stubs/main/woocommerce-subscriptions-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)

```
