php-stubs/woocommerce-subscriptions-stubs

WooCommerce Subscriptions function and class declaration stubs for static analysis.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/php-stubs/woocommerce-subscriptions-stubs

v8.1.0 2025-12-01 20:35 UTC

This package is auto-updated.

Last update: 2025-12-01 20:47:11 UTC


README

Packagist stats Packagist Tweet

This package provides stub declarations for the WooCommerce Subscriptions 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.4

Installation

Require this package as a development dependency with Composer.

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

Alternatively you may download woocommerce-subscriptions-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-subscriptions-stubs/woocommerce-subscriptions-stubs.php

Support package maintenance

Please consider supporting this work.

Sponsor

Thank you!