PHPackages                             myerscode/laravel-taxonomies - 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. [Database &amp; ORM](/categories/database)
4. /
5. myerscode/laravel-taxonomies

ActiveLibrary[Database &amp; ORM](/categories/database)

myerscode/laravel-taxonomies
============================

A package for creating taxonomies and terms to categorise Eloquent models

13.0.0(3mo ago)95.8k↑11.1%2MITPHPPHP ^8.5CI passing

Since Dec 17Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/myerscode/laravel-taxonomies)[ Packagist](https://packagist.org/packages/myerscode/laravel-taxonomies)[ Docs](https://github.com/myerscode/laravel-taxonomies)[ RSS](/packages/myerscode-laravel-taxonomies/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (15)Versions (15)Used By (0)

Laravel Taxonomies
==================

[](#laravel-taxonomies)

> A package for creating taxonomies and terms to categorise Eloquent models

[![Latest Stable Version](https://camo.githubusercontent.com/e265309fec95605e50d4133efc426b3c3f66fc4ee7518a3d906ead537942b43a/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f6c61726176656c2d7461786f6e6f6d6965732f762f737461626c65)](https://packagist.org/packages/myerscode/laravel-taxonomies)[![Total Downloads](https://camo.githubusercontent.com/9ed11c0840a720f0c6f75ef42e2b823e86e40f2c2d5595377eb604a6f1eaf082/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f6c61726176656c2d7461786f6e6f6d6965732f646f776e6c6f616473)](https://packagist.org/packages/myerscode/laravel-taxonomies)[![PHP Version Require](https://camo.githubusercontent.com/60730b1e55f1399721c4005246abd0303709655804d043985fca27b8cc3ce0d5/687474703a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f6c61726176656c2d7461786f6e6f6d6965732f726571756972652f706870)](https://packagist.org/packages/myerscode/laravel-taxonomies)[![License](https://camo.githubusercontent.com/400ce15646e3fe9a58bda70c157b9495263b5bed5bfc23fc07bdf61c9cda8046/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f6c61726176656c2d7461786f6e6f6d6965732f6c6963656e7365)](https://github.com/myerscode/laravel-taxonomies/blob/main/LICENSE)[![Tests](https://github.com/myerscode/laravel-taxonomies/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/myerscode/laravel-taxonomies/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/733276997bbedd40acf73e945a3060d668b50f3ee59034a6fab2a15313063686/68747470733a2f2f636f6465636f762e696f2f67682f6d79657273636f64652f6c61726176656c2d7461786f6e6f6d6965732f67726170682f62616467652e737667)](https://codecov.io/gh/myerscode/laravel-taxonomies)

Why is this package helpful?
----------------------------

[](#why-is-this-package-helpful)

This package allow you to create taxonomies and terms and relate them to Laravel models, similar to WordPress

- Create Taxonomy groups to categorise your models
- Add terms to models and to taxonomies
- Use your localisation files to translate taxonomy and term names
- Find all models relating to a given taxonomy or term

Unlike other popular tag packages for Laravel this one supports MariaDB.

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

[](#requirements)

- PHP ^8.5
- Laravel ^13.0

Install
-------

[](#install)

You can install this package via composer:

```
composer require myerscode/laravel-taxonomies
```

Setup
-----

[](#setup)

The service provider will automatically be registered via package discovery.

Publish the migration with:

```
php artisan vendor:publish --provider="Myerscode\Laravel\Taxonomies\ServiceProvider" --tag="migrations"
```

After the migration has been published, run the migrations to create the `tags`, `taxonomies` and `taggables` tables.

[Usage](docs/model.md)
----------------------

[](#usage)

To make an Eloquent model taggable just add the `\Myerscode\Laravel\Taxonomies\HasTaxonomy` trait to it:

```
class Post extends Model
{
    use \Myerscode\Laravel\Taxonomies\HasTaxonomy;

    ...
}
```

[Terms](docs/terms.md)
----------------------

[](#terms)

Are the meta tags you want to add to your model, giving them a definable characteristic.

[Taxonomies](docs/taxonomies.md)
--------------------------------

[](#taxonomies)

Are are a way of grouping your terms together, categorising your collection.

For example a `Taxonomy` called `Colours` could contain terms such as `Red`, `Yellow`, `Green` and `Blue`.

[Localisation](docs/localisation.md)
------------------------------------

[](#localisation)

You can get translated names from your terms and taxonomies by setting localised language files.

Advance Usage
-------------

[](#advance-usage)

You can change the default `Taxonomy` or `Term` class by publishing the config, and modifying the classes to your custom models.

Publish the config file with:

```
php artisan vendor:publish --provider="Myerscode\Laravel\Taxonomies\ServiceProvider" --tag="config"
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.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 ~265 days

Recently: every ~385 days

Total

11

Last Release

91d ago

Major Versions

1.2.2 → 7.0.02020-03-21

7.0.0 → 8.0.02021-01-07

7.x-dev → 13.0.02026-03-27

PHP version history (5 changes)1.0.0PHP ~7.0

1.2.2PHP ^7.2

7.0.0PHP ^7.4

8.0.0PHP ^7.3|^8.0

13.0.0PHP ^8.5

### Community

Maintainers

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

---

Top Contributors

[![oniice](https://avatars.githubusercontent.com/u/2676321?v=4)](https://github.com/oniice "oniice (88 commits)")[![MarianadelaPazMedina](https://avatars.githubusercontent.com/u/97449354?v=4)](https://github.com/MarianadelaPazMedina "MarianadelaPazMedina (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

eloquentlaravellaravel-modelslaravel-taxonomieslocalisationmariadbtaxonomyphplaravelwordpresseloquenttagstaxonomytaxonomiesterms

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/myerscode-laravel-taxonomies/health.svg)

```
[![Health](https://phpackages.com/badges/myerscode-laravel-taxonomies/health.svg)](https://phpackages.com/packages/myerscode-laravel-taxonomies)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591452.8k2](/packages/spiritix-lada-cache)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[aliziodev/laravel-taxonomy

Laravel Taxonomy is a flexible and powerful package for managing taxonomies, categories, tags, and hierarchical structures in Laravel applications. Features nested-set support for optimal query performance on hierarchical data structures.

24423.9k](/packages/aliziodev-laravel-taxonomy)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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