Skip to content

2025 · Creator & Maintainer

PHPStan WooCommerce Subscriptions Stubs

WooCommerce Subscriptions function and class declaration stubs for PHPStan static analysis — enables type-safe development against the Subscriptions API.

Role

Creator & Maintainer

Links

Overview

WooCommerce Subscriptions is a premium plugin with no public stubs for static analysis. This package provides comprehensive PHPStan-compatible stub declarations for all public classes, methods, and functions in the Subscriptions API.

What's Included

  • All WC_Subscription, WC_Subscriptions_* class stubs
  • Action and filter hook signatures
  • Helper function declarations
  • Enum-equivalent constants

Usage

composer require --dev mralaminahamed/phpstan-woocommerce-subscriptions-stubs

Add to phpstan.neon:

parameters: stubFiles: - vendor/mralaminahamed/phpstan-woocommerce-subscriptions-stubs/stubs

Tech

PHP, PHPStan stubs, WooCommerce Subscriptions API.

One email a month. No noise.

What I shipped, what I read, occasional deep dive. Unsubscribe anytime.

Interested in working together?

I'm open to freelance engagements and consulting. Let's talk.