PHPackages                             wp-kit/registry - 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. wp-kit/registry

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

wp-kit/registry
===============

A wp-kit component that handles Post Type and Taxonomy registration

2.0.8(5y ago)22.4k↑16.7%2MITPHPPHP ^7.4

Since Sep 18Pushed 5y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (3)Versions (10)Used By (2)

wp-kit/registry
===============

[](#wp-kitregistry)

This is a wp-kit component that handles [`PostType`](http://framework.themosis.com/docs/1.3/posttype/) and [`Taxonomy`](http://framework.themosis.com/docs/1.3/taxonomy/) registration.

This component was built to run within an [`Illuminate\Container\Container`](https://github.com/illuminate/container/blob/master/Container.php) so is perfect for frameworks such as [`Themosis`](http://framework.themosis.com/), [`Assely`](https://assely.org/) and [`wp-kit/theme`](https://github.com/wp-kit/theme).

`wp-kit/registry` is fully comptaible with [`Themosis`](http://framework.themosis.com/) and if you are using `Themosis` you'll notice it already has a [`PostTypeBuilder`](https://github.com/themosis/framework/blob/master/src/Themosis/PostType/PostTypeBuilder.php) and a [`TaxonomyBuilder`](https://github.com/themosis/framework/blob/master/src/Themosis/Taxonomy/TaxonomyBuilder.php) but `wp-kit/registry` just simplifies the process by providing an [OOP](https://en.wikipedia.org/wiki/Object-oriented_programming) approach to registering `PostTypes` and `Taxonomies`.

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

[](#installation)

If you're using `Themosis`, install via [`Composer`](https://getcomposer.org/) in the `Themosis` route folder, otherwise install in your `Composer` driven theme folder:

```
composer require "wp-kit/registry"
```

Setup
-----

[](#setup)

### Add Service Provider

[](#add-service-provider)

Just register the service provider and facade in the providers config and theme config:

```
//inside theme/resources/config/providers.config.php

return [
    //
    WPKit\Registry\RegistryServiceProvider::class,
    //
];
```

### Add PRS4 Class Reference (Themosis Only)

[](#add-prs4-class-reference-themosis-only)

Just add the following line to `resources/config/loading.config.php` in the `Themosis` theme folder:

```
'Theme\\Taxonomies\\' => themosis_path('theme.resources').'taxonomies',
'Theme\\PostTypes\\' => themosis_path('theme.resources').'postTypes',
```

### Add Config &amp; View File

[](#add-config--view-file)

The recommended method of installing config files for `wp-kit` components is via `wp kit vendor:publish` command.

First, [install WP CLI](http://wp-cli.org/), and then install this component, `wp kit vendor:publish` will automatically be installed with `wp-kit/utils`, once installed you can run:

`wp kit vendor:publish`

For more information, please visit [`wp-kit/utils`](https://github.com/wp-kit/utils#commands).

Alternatively, you can place the [config file(s)](config), [post type file(s)](postTypes) and [taxonomy file(s)](taxonomies) in your `theme/resources/config`, `theme/resources/postTypes` and `theme/resources/taxonomies` directories manually.

Usage
-----

[](#usage)

### Adding Classes

[](#adding-classes)

`wp-kit\registry` comes with two classes that can extended, [`WPKit\Registry\PostType`](src/Registry/PostType.php) and [`WPKit\Registry\Taxonomy`](src/Registry/Taxonomy.php).

Any custom `PostTypes` and `Taxonomies` should be added inside `resources/shortcodes` within the namespace `Theme\PostType` or `Theme\Taxonomy`.

[Here is an example PostType class](postTypes/Test.php).

[Here is an example Taxonomy class](taxonomies/Test.php).

Get Involved
------------

[](#get-involved)

To learn more about how to use `wp-kit` check out the docs:

[View the Docs](https://github.com/wp-kit/theme/tree/docs/README.md)

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:

- Reporting a bug issue
- Suggesting features
- Sending a pull request with code fix or feature
- Following the project on [GitHub](https://github.com/wp-kit)
- Sharing the project around your community

For details about contributing to the framework, please check the [contribution guide](https://github.com/wp-kit/theme/tree/docs/Contributing.md).

Requirements
------------

[](#requirements)

Wordpress 4+

PHP 5.6+

License
-------

[](#license)

wp-kit/registry is open-sourced software licensed under the MIT License.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

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

Recently: every ~48 days

Total

9

Last Release

2058d ago

PHP version history (2 changes)2.0.0PHP &gt;=5.6.4

2.0.7PHP ^7.4

### Community

Maintainers

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

---

Top Contributors

[![terence1990](https://avatars.githubusercontent.com/u/8171301?v=4)](https://github.com/terence1990 "terence1990 (50 commits)")

---

Tags

wordpresstaxonomyOOPthemosisPostTypewp-kit

### Embed Badge

![Health badge](/badges/wp-kit-registry/health.svg)

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

PHPackages © 2026

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