PHPackages                             shinepress/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shinepress/woocommerce-stubs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shinepress/woocommerce-stubs
============================

WooCommerce function and class declaration stubs for static analysis split into multiple files for increased performance.

10.6.2(1mo ago)03MIT

Since Nov 21Pushed 1mo agoCompare

[ Source](https://github.com/shinepress/woocommerce-stubs)[ Packagist](https://packagist.org/packages/shinepress/woocommerce-stubs)[ RSS](/packages/shinepress-woocommerce-stubs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (184)Used By (0)

shinepress/woocommerce-stubs
============================

[](#shinepresswoocommerce-stubs)

[![Latest Version](https://camo.githubusercontent.com/6c97aa1070c27aa2c144eb8ddd96c29c1819c7e61281144972807983dc224fc1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368696e6570726573732f776f6f636f6d6d657263652d73747562733f6c6162656c3d6c6174657374)](https://packagist.org/packages/shinepress/woocommerce-stubs/)[![Downloads](https://camo.githubusercontent.com/ed5d8ddb4ac987d0a548dd2b39975d46e022a3e7249ce53b0dd47f3fe480ce5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7368696e6570726573732f776f6f636f6d6d657263652d73747562733f6c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/shinepress/woocommerce-stubs/)

Description
-----------

[](#description)

WooCommerce function and class declaration stubs for static analysis split into multiple files for increased performance. Automatically generated from the [woocommerce-stubs.php](https://github.com/php-stubs/woocommerce-stubs/blob/master/woocommerce-stubs.php) stubfile in [php-stubs/woocommerce-stubs](https://github.com/php-stubs/woocommerce-stubs/).

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

[](#installation)

The recommendend installation method is with composer:

```
$ composer require --dev shinepress/woocommerce-stubs
```

**Note:** only tagged versions are functional, dev-main will not provide any stubfiles.

Usage
-----

[](#usage)

Just register the autoloader as a bootstrap file in your phpstan config:

```
parameters:
    bootstrapFiles:
        - ./vendor/shinepress/woocommerce-stubs/autoload.php
```

Acknowledgements
----------------

[](#acknowledgements)

The project is made possible by:

- [php-stubs/woocommerce-stubs](https://packagist.org/packages/php-stubs/woocommerce-stubs) ([Viktor Szépe](https://github.com/szepeviktor))
- [czproject/git-php](https://packagist.org/packages/czproject/git-php) ([Jan Pecha](https://github.com/janpecha))
- [nikic/php-parser](https://packagist.org/packages/nikic/php-parser) ([Nikita Popov](https://github.com/nikic))

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance92

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~12 days

Recently: every ~7 days

Total

183

Last Release

39d ago

Major Versions

5.9.1 → 6.0.12022-04-30

6.9.4 → 7.0.02022-10-12

7.9.0 → 8.0.12023-08-09

8.9.1 → 9.0.02024-06-18

9.9.5 → 10.0.22025-07-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/101dfc84da8ca292404bb982f8b6669c868f058ea4234a256b4afe47465d93c0?d=identicon)[shineunited](/maintainers/shineunited)

---

Top Contributors

[![rmlasseter](https://avatars.githubusercontent.com/u/5660821?v=4)](https://github.com/rmlasseter "rmlasseter (5 commits)")[![shineadmin](https://avatars.githubusercontent.com/u/3662582?v=4)](https://github.com/shineadmin "shineadmin (1 commits)")

---

Tags

PHPStanwordpressstatic analysiswoocommerce

### Embed Badge

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

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

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

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

WordPress function and class declaration stubs for static analysis.

19013.0M263](/packages/php-stubs-wordpress-stubs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M40](/packages/woocommerce-woocommerce-sniffs)[php-stubs/wp-cli-stubs

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

302.3M79](/packages/php-stubs-wp-cli-stubs)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

24115.0k10](/packages/johnbillion-wp-compat)

PHPackages © 2026

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