PHPackages                             php-stubs/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. [Payment Processing](/categories/payments)
4. /
5. php-stubs/woocommerce-subscriptions-stubs

ActiveLibrary[Payment Processing](/categories/payments)

php-stubs/woocommerce-subscriptions-stubs
=========================================

WooCommerce Subscriptions function and class declaration stubs for static analysis.

v8.4.0(4mo ago)47.2k↑568.2%MITPHP

Since Dec 1Pushed 4mo agoCompare

[ Source](https://github.com/php-stubs/woocommerce-subscriptions-stubs)[ Packagist](https://packagist.org/packages/php-stubs/woocommerce-subscriptions-stubs)[ Docs](https://github.com/php-stubs/woocommerce-subscriptions-stubs)[ RSS](/packages/php-stubs-woocommerce-subscriptions-stubs/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

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

[](#woocommerce-subscriptions-stubs)

[![Packagist stats](https://camo.githubusercontent.com/ba8d94a4c5904adf0d12c1b1ff7e3214565f047b985d53ce00ae766392eb42d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d73747562732f776f6f636f6d6d657263652d737562736372697074696f6e732d73747562732e737667)](https://packagist.org/packages/php-stubs/woocommerce-subscriptions-stubs/stats)[![Packagist](https://camo.githubusercontent.com/b4cccc177bb8135d2a1e0404921ff3f93e75c14055c0e10bc389b76939fd194a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d73747562732f776f6f636f6d6d657263652d737562736372697074696f6e732d73747562732e7376673f636f6c6f723d344343363145267374796c653d706f706f7574)](https://packagist.org/packages/php-stubs/woocommerce-subscriptions-stubs)[![Tweet](https://camo.githubusercontent.com/f2c37423b05bb0697239f01a903bb61244243215e49041792283fa299469597a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54776565742d73686172652d6435643564353f7374796c653d736f6369616c266c6f676f3d74776974746572)](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fphp-stubs%2Fwoocommerce-stubs&url=I%20use%20php-stubs%2Fwoocommerce-subscriptions-stubs%20for%20IDE%20completion%20and%20static%20analysis)

This package provides stub declarations for the [WooCommerce Subscriptions plugin](https://woocommerce.com/products/woocommerce-subscriptions/)functions, classes and interfaces. These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).

The stubs are generated directly from the source using [php-stubs/generator](https://github.com/php-stubs/generator).

Requirements
------------

[](#requirements)

- PHP &gt;=7.4

Installation
------------

[](#installation)

Require this package as a development dependency with [Composer](https://getcomposer.org).

```
composer require --dev php-stubs/woocommerce-subscriptions-stubs
```

Alternatively you may download `woocommerce-subscriptions-stubs.php` directly.

Usage in PHPStan
----------------

[](#usage-in-phpstan)

Include stubs in PHPStan configuration file.

```
parameters:
    bootstrapFiles:
        - vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
        - vendor/php-stubs/woocommerce-subscriptions-stubs/woocommerce-subscriptions-stubs.php
```

Support package maintenance
---------------------------

[](#support-package-maintenance)

Please consider supporting this work.

[![Sponsor](https://github.com/szepeviktor/.github/raw/master/.github/assets/github-like-sponsor-button.svg)](https://github.com/sponsors/php-stubs)

Thank you!

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance74

Regular maintenance activity

Popularity30

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Total

2

Last Release

140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/135d8104cdf926e2b15b6a06413153a9582729f0cd48ccba7bc7e62878a39781?d=identicon)[szepeviktor](/maintainers/szepeviktor)

---

Top Contributors

[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (4 commits)")

---

Tags

subscriptionwoocommerce-paymentwoocommerce-pluginPHPStanwordpressstatic analysissubscriptionwoocommerce

### Embed Badge

![Health badge](/badges/php-stubs-woocommerce-subscriptions-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/php-stubs-woocommerce-subscriptions-stubs/health.svg)](https://phpackages.com/packages/php-stubs-woocommerce-subscriptions-stubs)
```

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.5M102](/packages/php-stubs-woocommerce-stubs)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

33110.3M1.4k](/packages/szepeviktor-phpstan-wordpress)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

75813.5k84](/packages/php-stubs-acf-pro-stubs)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.9M135](/packages/php-stubs-wp-cli-stubs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
