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

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

wearenolte/wp-cpt
=================

Create custom post types easier.

1.0.5(6mo ago)326.4k↓42.6%1[1 issues](https://github.com/wearenolte/wp-cpt/issues)1MITPHPPHP &gt;=7.4 || &gt;=8.0

Since Jan 23Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/wearenolte/wp-cpt)[ Packagist](https://packagist.org/packages/wearenolte/wp-cpt)[ Docs](https://github.com/moxie-lean/wp-cpt)[ RSS](/packages/wearenolte-wp-cpt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (13)Used By (1)

[Custom Post Types](https://github.com/moxie-lean/wp-cpt)
=========================================================

[](#custom-post-types)

> This library will allow you to create more easily custom post types for wordpress without too much effort.

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

[](#installation)

The easiest way to install this package is by using composer from your terminal:

```
composer require wearenolte/wp-cpt
```

Or by adding the following lines on your `composer.json` file

```
"require": {
  "wearenolte/wp-cpt": "dev-master"
}
```

This will download the file from the [packagist site](https://packagist.org/packages/wearenolte/wp-cpt)and the latest version located on master branch of the repository.

After that you can need to include the `autoload.php` file in order to be able to autoload the class during the object creation.

```
include '/vendor/autoload.php';
```

Then you only need to create a new `Cpt` object with the required params for your custom post type, if you are using the library in a theme you might need to add the function in the `init` action as an example:

```
add_action( 'init', function() {
    $testimonials = new \Lean\Cpt([
        'singular' => 'Testimonial',
        'plural' => 'Testimonials',
        'post_type' => 'testimonials',
        'slug' => 'testimonial',
    ]);
    $testimonials->init();
});
```

The example above allow you to create a new testimonial post type on your theme.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance62

Regular maintenance activity

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 61.7% 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 ~512 days

Recently: every ~874 days

Total

8

Last Release

180d ago

Major Versions

0.2.0 → 1.0.02016-04-25

PHP version history (3 changes)0.1.0PHP &gt;=5.4

1.0.4PHP &gt;=7.2 || &gt;=8.0

1.0.5PHP &gt;=7.4 || &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4aa05a59deaf5695b3a80e42e2c6b971ab92c171ad13cd7b95ca8175382cda60?d=identicon)[WeAreNolte](/maintainers/WeAreNolte)

---

Top Contributors

[![mitogh](https://avatars.githubusercontent.com/u/3921289?v=4)](https://github.com/mitogh "mitogh (29 commits)")[![Fcog](https://avatars.githubusercontent.com/u/5692863?v=4)](https://github.com/Fcog "Fcog (7 commits)")[![honekun](https://avatars.githubusercontent.com/u/572652?v=4)](https://github.com/honekun "honekun (6 commits)")[![arzola](https://avatars.githubusercontent.com/u/4997549?v=4)](https://github.com/arzola "arzola (2 commits)")[![royboy789](https://avatars.githubusercontent.com/u/4039786?v=4)](https://github.com/royboy789 "royboy789 (2 commits)")[![acastellanos3](https://avatars.githubusercontent.com/u/61747246?v=4)](https://github.com/acastellanos3 "acastellanos3 (1 commits)")

---

Tags

wordpresspost-typescpt

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[jjgrainger/posttypes

Simple WordPress custom post types.

382568.8k12](/packages/jjgrainger-posttypes)[log1x/poet

Configuration-based post type, taxonomy, editor color palette, block category, and block registration for Sage 10.

218280.1k1](/packages/log1x-poet)[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)

PHPackages © 2026

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