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)0698MITPHP

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 1mo 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

30

—

LowBetter than 64% of packages

Maintenance46

Moderate activity, may be stable

Popularity17

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

421d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/7f618d5c06c711c1eada5b9569aad7cee6d81e830566775e7734dd87828e8fdc?d=identicon)[0zd0](/maintainers/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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3257.8M897](/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.

21830.6M586](/packages/phpcompatibility-phpcompatibility-wp)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

73692.8k50](/packages/php-stubs-acf-pro-stubs)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)

PHPackages © 2026

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