PHPackages                             pattonwebz/post-type-registration - 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. pattonwebz/post-type-registration

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

pattonwebz/post-type-registration
=================================

A base class for extending when setting up post types.

0.2.2(7y ago)020GPL-2.0-or-laterPHP

Since Feb 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pattonwebz/post-type-registration)[ Packagist](https://packagist.org/packages/pattonwebz/post-type-registration)[ RSS](/packages/pattonwebz-post-type-registration/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (5)Used By (0)

PattonWebz Post Type Registration Class
=======================================

[](#pattonwebz-post-type-registration-class)

A simple abstract class to encapsulate registering post types and their arguments.

Using the class
---------------

[](#using-the-class)

The intention is that you setup the extended class with a name and some values then trigger the registration with a call to the `protected` method `register()`.

You can pass in an array for `$labels` and `$args` prior to you calling `register` if you are generating the parameters for the CPT on-the-fly.

Extending the class
-------------------

[](#extending-the-class)

In the child class set the `$name` property to the slug to be used for the CPT then override the `get_labels` and `get_args` methods with your values.

Licence Information
===================

[](#licence-information)

This package is licensed under GNU GPLv2 or later licence.

Help Section contained in the package is based on and inspired by Justin Tadlock's Customizer Upsell Section -  - GPLv2 licence.

Copyright 2018 © William Patton.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

2632d ago

### Community

Maintainers

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

---

Top Contributors

[![pattonwebz](https://avatars.githubusercontent.com/u/3902039?v=4)](https://github.com/pattonwebz "pattonwebz (18 commits)")

### Embed Badge

![Health badge](/badges/pattonwebz-post-type-registration/health.svg)

```
[![Health](https://phpackages.com/badges/pattonwebz-post-type-registration/health.svg)](https://phpackages.com/packages/pattonwebz-post-type-registration)
```

PHPackages © 2026

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