PHPackages                             onepix/woocommerce-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. [Testing &amp; Quality](/categories/testing)
4. /
5. onepix/woocommerce-stubs

ActiveLibrary[Testing &amp; Quality](/categories/testing)

onepix/woocommerce-stubs
========================

Stubs for the WooCommerce plugin for static analysis

v9.7.1(1y ago)0700MITPHP

Since Jan 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/0zd0/woocommerce-stubs)[ Packagist](https://packagist.org/packages/onepix/woocommerce-stubs)[ Docs](https://github.com/0zd0/wooocommerce-stubs)[ RSS](/packages/onepix-woocommerce-stubs/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

WooCommerce Stubs
=================

[](#woocommerce-stubs)

### Installation

[](#installation)

```
composer require --dev onepix/woocommerce-stubs
```

It contains stub declarations for [WooCommerce](https://wordpress.org/plugins/woocommerce/)core functions, classes, interfaces, global variables (maybe some are not noticed, only the `define_constants` function is handled).

Compatible with Psalm ([psalm-plugin-wordpress](https://github.com/psalm/psalm-plugin-wordpress)), PHPStan (not tested)

Generated by [wordpress-stubs-generator](https://github.com/0zd0/wordpress-stubs-generator)

### Requirements

[](#requirements)

- PHP 8.1+

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance42

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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 ~17 days

Total

4

Last Release

476d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/380c3a3697647ffa6dacfa3f41ef2d8ea43a40a12a823d380b843b57ac14750c?d=identicon)[onepix](/maintainers/onepix)

![](https://avatars.githubusercontent.com/u/67220210?v=4)[zd](/maintainers/0zd0)[@0zd0](https://github.com/0zd0)

---

Top Contributors

[![0zd0](https://avatars.githubusercontent.com/u/67220210?v=4)](https://github.com/0zd0 "0zd0 (17 commits)")

---

Tags

PHPStanwordpressstatic analysiswoocommercepsalm

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

33110.3M1.4k](/packages/szepeviktor-phpstan-wordpress)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22134.3M760](/packages/phpcompatibility-phpcompatibility-wp)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

75813.5k86](/packages/php-stubs-acf-pro-stubs)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.5M104](/packages/php-stubs-woocommerce-stubs)

PHPackages © 2026

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