PHPackages                             azi/raskoh - 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. azi/raskoh

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

azi/raskoh
==========

Raskoh - easy wordpress CPT and Taxonomy registration

1.4.1(8y ago)141796[1 PRs](https://github.com/azeemhassni/Raskoh/pulls)MITPHP

Since May 19Pushed 2y ago2 watchersCompare

[ Source](https://github.com/azeemhassni/Raskoh)[ Packagist](https://packagist.org/packages/azi/raskoh)[ RSS](/packages/azi-raskoh/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)DependenciesVersions (9)Used By (0)

Raskoh - WP PostType and Taxonomies
===================================

[](#raskoh---wp-posttype-and-taxonomies)

Registring custom post types and taxonomies in wordpress is not a headache anymore. Raskoh will make your life simpler.

[![Usage in theme functions.php](https://raw.githubusercontent.com/azeemhassni/Raskoh/master/code-capture.PNG)](https://raw.githubusercontent.com/azeemhassni/Raskoh/master/code-capture.PNG)

Install
-------

[](#install)

You can insall Raskoh as a wordpress plugin by downloading the package and pulling it in `wp-content/plugins` folder or using composer.

Paste this in `composer.json` file

```
{
   "require" : {
        "azi/raskoh" : "1.*"
   }
}
```

or just run this command in your project. `$ composer require azi/raskoh`

include composers autoloader in your theme's `functions.php`

```
require_once "vendor/autoloader.php";
```

Usage
-----

[](#usage)

##### Register a Post Type

[](#register-a-post-type)

to register a post type

```
$music = new Raskoh\PostType("Music");
$music->register();
```

##### Add a Taxonomy

[](#add-a-taxonomy)

register a taxonomy along with post type

```
$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy('Singer')->register();
```

##### Restrict Posts by Term

[](#restrict-posts-by-term)

if you want to add Terms dropdown on WordPress admin interface to restrict posts by terms. just pass a second boolean to `php PostType::taxonomy($name, $filters = false)` method.

```
$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy('Singer', true)->register();
```

##### Register Multiple Taxonomies

[](#register-multiple-taxonomies)

```
$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy(['singer','genre'])->register();
```

##### Set Icons

[](#set-icons)

you can also set icons to your post type

```
$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy('Singer')->setIcon('dashicons-format-audioy')->register();
```

you can pass all other arguments listed at Codex for `wp_register_post_type()` like this

```
$CPT = Raskoh\PostType::getInstance();
$CPT->set{ArgumentName}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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 ~122 days

Recently: every ~142 days

Total

8

Last Release

3162d ago

Major Versions

v0.1 → 1.02015-06-04

### Community

Maintainers

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

---

Top Contributors

[![azeemhassni](https://avatars.githubusercontent.com/u/6503258?v=4)](https://github.com/azeemhassni "azeemhassni (37 commits)")[![rizwanellahi](https://avatars.githubusercontent.com/u/12427458?v=4)](https://github.com/rizwanellahi "rizwanellahi (1 commits)")

---

Tags

composertaxonomythemewordpress

### Embed Badge

![Health badge](/badges/azi-raskoh/health.svg)

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

###  Alternatives

[winter/laravel-config-writer

Utility to create and update Laravel config and .env files

16300.9k9](/packages/winter-laravel-config-writer)

PHPackages © 2026

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