PHPackages                             x-wp/wc-data-type-admin - 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. [Admin Panels](/categories/admin)
4. /
5. x-wp/wc-data-type-admin

ActiveLibrary[Admin Panels](/categories/admin)

x-wp/wc-data-type-admin
=======================

v1.0.3(2mo ago)015[1 issues](https://github.com/x-wp/wc-data-type-admin/issues)GPL-2.0PHPPHP &gt;=8.0CI passing

Since Apr 16Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/x-wp/wc-data-type-admin)[ Packagist](https://packagist.org/packages/x-wp/wc-data-type-admin)[ GitHub Sponsors](https://github.com/seebeen)[ RSS](/packages/x-wp-wc-data-type-admin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (20)Versions (8)Used By (0)

WC Data Type Admin
==================

[](#wc-data-type-admin)

### Admin list-page utilities for WooCommerce data types

[](#admin-list-page-utilities-for-woocommerce-data-types)

[![Packagist Version](https://camo.githubusercontent.com/eeffb5c8be994f63bf72ec4adc32c9846a0f22e5bf1af011288660ab8d774a21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f782d77702f77632d646174612d747970652d61646d696e3f6c6162656c3d52656c65617365267374796c653d666c61742d737175617265)](https://packagist.org/packages/x-wp/wc-data-type-admin)[![Packagist PHP Version](https://camo.githubusercontent.com/ff3a8aa83db04746f2981a9e5d4bc9f1381ffd2e5a89611a22cb0dae2e36951f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f782d77702f77632d646174612d747970652d61646d696e2f7068703f6c6162656c3d504850266c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6f676f53697a653d6175746f267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ff3a8aa83db04746f2981a9e5d4bc9f1381ffd2e5a89611a22cb0dae2e36951f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f782d77702f77632d646174612d747970652d61646d696e2f7068703f6c6162656c3d504850266c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6f676f53697a653d6175746f267374796c653d666c61742d737175617265)[![Static Badge](https://camo.githubusercontent.com/7be7af0284a72836b9704a9175b22941064f2f75103093077829e5ef6538ab5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57502d253345253344362e392e342d3338353865393f7374796c653d666c61742d737175617265266c6f676f3d776f72647072657373266c6f676f53697a653d6175746f)](https://camo.githubusercontent.com/7be7af0284a72836b9704a9175b22941064f2f75103093077829e5ef6538ab5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57502d253345253344362e392e342d3338353865393f7374796c653d666c61742d737175617265266c6f676f3d776f72647072657373266c6f676f53697a653d6175746f)[![Static Badge](https://camo.githubusercontent.com/1096617f99162265b3f4af7dbbebc42f0de54d2e08efb0f1fd10239efde1428c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57432d25334525334431302e362e312d3766353462333f7374796c653d666c61742d737175617265266c6f676f3d776f6f636f6d6d65726365266c6f676f53697a653d6175746f)](https://camo.githubusercontent.com/1096617f99162265b3f4af7dbbebc42f0de54d2e08efb0f1fd10239efde1428c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57432d25334525334431302e362e312d3766353462333f7374796c653d666c61742d737175617265266c6f676f3d776f6f636f6d6d65726365266c6f676f53697a653d6175746f)

This library provides admin list-page and list-table utilities for custom WooCommerce data types defined with [`x-wp/wc-data-type`](https://github.com/x-wp/wc-data-type). Define a data type once, then get a consistent admin listing experience with minimal boilerplate.

Key Features
------------

[](#key-features)

1. **List page handling**: Register admin pages for custom data types with `List_Page_Handler`.
2. **WooCommerce-style list tables**: Extend `List_Table` for a familiar `WP_List_Table` workflow tuned for WooCommerce objects.
3. **Shared mixins**: Reusable list-table behaviors via `src/Mixins/*`.
4. **Legacy compatibility**: Wrappers (`XWC_Data_List_Page`, `XWC_Data_List_Table`) keep existing consumers working.
5. **WordPress-native integration**: Designed for plugin code already built around WordPress and WooCommerce lifecycles.

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

[](#installation)

You can install this package via Composer:

```
composer require x-wp/wc-data-type-admin
```

Tip

We recommend using `automattic/jetpack-autoloader` with this package to reduce autoloading conflicts in WordPress environments.

Package Structure
-----------------

[](#package-structure)

- `src/List_Page_Handler.php`: admin page handler with DI-based table resolution
- `src/List_Table.php`: base table implementation shared by legacy and new flows
- `src/Mixins/*`: shared list-table behaviors
- `src/Core/*`: legacy compatibility wrappers
- `templates/html-admin-page-edsl.php`: shared admin page template

Testing
-------

[](#testing)

Regression checks:

```
php tests/regressions.php
```

Static analysis:

```
php -d memory_limit=1G vendor/bin/phpstan analyse --debug
```

Note

The regression script is intentionally lightweight and does not require a full WordPress test bootstrap. PHPStan is configured conservatively for this library; in constrained environments, `--debug` is the verified non-parallel invocation path.

Documentation
-------------

[](#documentation)

For package-specific usage, start with the public entrypoints:

- `XWC\Data\Admin\List_Page_Handler`
- `XWC\Data\Admin\List_Table`
- `XWC_Data_List_Page` (legacy)
- `XWC_Data_List_Table` (legacy)

Additional project information is available in the [repository](https://github.com/x-wp/wc-data-type-admin).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance83

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Recently: every ~120 days

Total

6

Last Release

87d ago

PHP version history (2 changes)v1.0.0-alpha.1PHP &gt;= 8.1

v1.0.0-alpha.2PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2564358?v=4)[oblak](/maintainers/oblak)[@oblak](https://github.com/oblak)

---

Top Contributors

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

---

Tags

librarywoocommercewordpress

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/x-wp-wc-data-type-admin/health.svg)

```
[![Health](https://phpackages.com/badges/x-wp-wc-data-type-admin/health.svg)](https://phpackages.com/packages/x-wp-wc-data-type-admin)
```

PHPackages © 2026

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