PHPackages                             davidanderson684/woocommerce-compat - 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. davidanderson684/woocommerce-compat

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

davidanderson684/woocommerce-compat
===================================

A library for abstracting away differences between WooCommerce versions

v0.3.2(3y ago)12481PHP

Since Jan 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/DavidAnderson684/woocommerce-compat)[ Packagist](https://packagist.org/packages/davidanderson684/woocommerce-compat)[ RSS](/packages/davidanderson684-woocommerce-compat/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)DependenciesVersions (9)Used By (0)

woocommerce-compat
==================

[](#woocommerce-compat)

A library to provide some help with abstracting away differences between WooCommerce versions.

WooCommerce changes its internals quite a lot. Most extension authors like their extensions to run across a range of versions. This library is code that I wrote to help with abstracting away some of the differences with my extensions ().

It is not my personal aim to create a comprehensive library. If you wish it to contain something that it does not, then please consider contributing a pull request. I am happy to accept pull requests, but will not be coding compatibility methods that I have no personal use for. As such, you should expect this library to be incomplete, by design. It is being shared because it may be useful to someone; and perhaps people will contribute and increase its usefulness.

Requirements:
-------------

[](#requirements)

- A PHP version supported by WordPress (see:  - N.B. don't confuse supported versions with recommended versions).

Use
---

[](#use)

- Add davidanderson684/woocommerce-compat to your requirements in composer.json, and then run a "composer update". Or, just `require_once('woocommerce-compat.php');`
- To see the currently available public methods, read the code!

Upgrading between versions
--------------------------

[](#upgrading-between-versions)

- Any API-breaking changes will be accompanied by a bump in the class name, which includes the version number. Addition of new functionality will also result in a bump. We will try to stick to semantic versioning ().

Etcetera
--------

[](#etcetera)

- Author homepage:
- Donations:

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Recently: every ~513 days

Total

8

Last Release

1319d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9a8c0e22fbadc70566b81a6f89dca017d01eddd26db78c7df0e403a00752084?d=identicon)[davidanderson684](/maintainers/davidanderson684)

---

Top Contributors

[![DavidAnderson684](https://avatars.githubusercontent.com/u/1962275?v=4)](https://github.com/DavidAnderson684 "DavidAnderson684 (15 commits)")

### Embed Badge

![Health badge](/badges/davidanderson684-woocommerce-compat/health.svg)

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

PHPackages © 2026

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