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

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

namest/taxonomy
===============

v0.2(11y ago)09MITPHP

Since Mar 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/luuhoangnam/taxonomy)[ Packagist](https://packagist.org/packages/namest/taxonomy)[ RSS](/packages/namest-taxonomy/feed)WikiDiscussions master Synced today

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

Getting Started
===============

[](#getting-started)

Provide an *elegant way* to interact with taxonomies (tags, category, ...) in your Laravel app.

**Note**: The package is only support Laravel 5

Installation
============

[](#installation)

**Step 1**: Install package

```
composer require namest/taxonomy
```

**Step 2**: Register service provider in your `config/app.php`

```
return [
    ...
    'providers' => [
        ...
        'Namest\Taxonomy\TaxonomyServiceProvider',
    ],
    ...
];
```

**Step 3**: Publish package migrations. Open your terminal and type:

```
php artisan vendor:publish --provider="Namest\Taxonomy\TaxonomyServiceProvider"
```

**Step 4**: Migrate the migration that have been published

```
php artisan migrate
```

**Step 5**: Create taxonomies in your terminal by artisan command

```
php artisan make:taxonomy Color
```

This command will create a taxonomy in database and make the `Color` model in app/Color.php to reflect that taxonomy.

**Step 6**: Read API below and start *happy*

API
===

[](#api)

```
$tag = new Tag;
$tag->name = 'new tag';
$tag->slug = 'new-tag';
$tag->save();

$childTag = new Tag;
$childTag->name = 'child tag';
$childTag->slug = 'child-tag';

$childTag = $tag->childs->save($childTag);
$parent = $childTag->parent;
```

```
$tag = Tag::first();
echo $tag->name;
echo $tag->slug;

$childs = $tag->childs;

```

```
// Find tag has slug is 'new-tag'
$tag = Tag::hasSlug('new-tag')->first();

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b120d989836a5c37a0f9a2558a237d7c14325aa76ba60a24badc402296c220b?d=identicon)[luuhoangnam](/maintainers/luuhoangnam)

---

Top Contributors

[![luuhoangnam](https://avatars.githubusercontent.com/u/5616199?v=4)](https://github.com/luuhoangnam "luuhoangnam (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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