PHPackages                             themeplate/cpt - 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. themeplate/cpt

ActiveLibrary

themeplate/cpt
==============

ThemePlate custom post types and taxonomies

v2.6.0(1y ago)42651GPL-3.0-onlyPHPPHP ^7.4|^8.2

Since Feb 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ThemePlate/CPT)[ Packagist](https://packagist.org/packages/themeplate/cpt)[ RSS](/packages/themeplate-cpt/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

ThemePlate CPT
==============

[](#themeplate-cpt)

Usage
-----

[](#usage)

```
use ThemePlate\CPT\PostType;
use ThemePlate\CPT\Taxonomy;

// One-liner
( new PostType( 'vehicle' ) )->register();
( new Taxonomy( 'brand' ) )->register();
```

### Full customization

[](#full-customization)

```
/** https://developer.wordpress.org/reference/functions/register_post_type/#parameters */
$args   = array(
	'has_archive' => true,
	'supports'    => array( 'title', 'editor', 'thumbnail' ),
);
$person = new PostType( 'person', $args );

// Custom singular and plural
$person->labels( 'Person', 'People' );
$person->register();

/** https://developer.wordpress.org/reference/functions/register_taxonomy/#parameters */
$args = array(
	'hierarchical' => true,
	'default_term' => 'Unknown',
);
$job  = new Taxonomy( 'job', $args );

// Custom singular and plural
$job->labels( 'Job Title', 'Job Titles' );
$job->register();
```

### Associations

[](#associations)

```
( new PostType( 'house' ) )->associate( 'category' )->register();
( new PostType( 'furniture' ) )->associate( 'category' )->register();
( new Taxonomy( 'style' ) )->associate( 'house' )->associate( 'furniture' )->register();
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance46

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Total

11

Last Release

405d ago

Major Versions

v1.1.0 → v2.0.02022-05-28

v1.x-dev → v2.1.02022-06-26

PHP version history (3 changes)v1.0.0PHP &gt;=5.6.0

v2.0.0PHP ^7.4|^8.0

v2.3.0PHP ^7.4|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/91095d431958c79a7384d515efec2686ca3cd1e1e1a5a42b680309b8e855355a?d=identicon)[kermage](/maintainers/kermage)

---

Top Contributors

[![kermage](https://avatars.githubusercontent.com/u/8350223?v=4)](https://github.com/kermage "kermage (47 commits)")

---

Tags

custom-post-typescustom-taxonomieswordpress

### Embed Badge

![Health badge](/badges/themeplate-cpt/health.svg)

```
[![Health](https://phpackages.com/badges/themeplate-cpt/health.svg)](https://phpackages.com/packages/themeplate-cpt)
```

PHPackages © 2026

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