PHPackages                             rocket/taxonomy - 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. rocket/taxonomy

AbandonedArchivedLibrary

rocket/taxonomy
===============

Taxonomy for your content

06PHP

Since Aug 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/RocketPropelledTortoise/Taxonomy)[ Packagist](https://packagist.org/packages/rocket/taxonomy)[ RSS](/packages/rocket-taxonomy/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Taxonomy Component
==================

[](#taxonomy-component)

[![Latest Version](https://camo.githubusercontent.com/37037244efb6a14c351a6cffed3a5f94597eb43d7c3e79985bc71bcf4160d222/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f526f636b657450726f70656c6c6564546f72746f6973652f436f72652e7376673f7374796c653d666c61742d737175617265)](https://github.com/RocketPropelledTortoise/Core/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/RocketPropelledTortoise/Core/blob/master/LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e4d22d2376cd09a486de8dfe6aa81f8c4d86e00af49ec7c5795a634951049ccd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f526f636b657450726f70656c6c6564546f72746f6973652f436f72652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/RocketPropelledTortoise/Core)[![Coverage Status](https://camo.githubusercontent.com/d634a4a406eb3c5738f4e5f02ee1970223dd7320b5b278213ce09b98f78a3dba/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f526f636b657450726f70656c6c6564546f72746f6973652f436f72652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/RocketPropelledTortoise/Core/code-structure)[![Quality Score](https://camo.githubusercontent.com/8e4983605094dd3dc3dbaffb91f269c66f2fcaef54b8c2dcef72a91c3b7fb311/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f526f636b657450726f70656c6c6564546f72746f6973652f436f72652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/RocketPropelledTortoise/Core)[![Total Downloads](https://camo.githubusercontent.com/0a58c3a4e93bf790a0f2ccd9cbf78ca9bb65c7e2c1d419b301a7612fcefe5972/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f636b65742f636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rocket/core)

**This is a subtree split of RocketPropelledTortoise CMS - Core. Don't send pull requests here**

What is it ?
------------

[](#what-is-it-)

Taxonomy is the art of classifying things. The Taxonomy Component is here to help you classify your content.

Create as many vocabularies and terms that you want and assign them to content.

Vocabularies can be Regions, Countries, Tags, Categories.
A vocabulary contains terms, each term can have one or more sub-terms.

Taxonomy is a **Laravel 5** module

Example
-------

[](#example)

```
use Taxonomy;
use Model;

use Rocket\Taxonomy\TaxonomyTrait;
use Rocket\Translation\Model\Language;
use Schema;

class Post extends Model {

    // add the taxonomy trait
    use TaxonomyTrait;

    public $fillable = ['content'];
}

Vocabulary::insert(['name' => 'Tag', 'machine_name' => 'tag', 'hierarchy' => 0, 'translatable' => true]);

// create the post
$post = new Post(['content' => 'a test post']);
$post->save();

// add the tags to it
$ids = T::getTermIds(['tag' => ['TDD', 'PHP', 'Add some tags']]);
$post->setTerms($ids);

// get the tags from the Post
$terms = $post->getTerms('tag')
```

Installing
----------

[](#installing)

Install with composer : `composer require rocket/taxonomy`

### Service Provider

[](#service-provider)

You need to add both the Taxonomy and Translation Service Providers

```
'\Rocket\Translation\Support\Laravel5\ServiceProvider',
'\Rocket\Taxonomy\Support\Laravel5\ServiceProvider'

```

### Aliases

[](#aliases)

```
'I18N' => '\Rocket\Translation\Support\Laravel5\Facade',
'Taxonomy' => '\Rocket\Taxonomy\Support\Laravel5\Facade',

```

### Migrations

[](#migrations)

```
php artisan migrate --path Translation/migrations
php artisan migrate --path Taxonomy/migrations

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7766264b40bb3a40b9b2ac847b67135c59e774807a6d1e313758efcd8203603f?d=identicon)[onigoetz](/maintainers/onigoetz)

---

Top Contributors

[![onigoetz](https://avatars.githubusercontent.com/u/309594?v=4)](https://github.com/onigoetz "onigoetz (46 commits)")

### Embed Badge

![Health badge](/badges/rocket-taxonomy/health.svg)

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

PHPackages © 2026

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