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

8.1.0(2y ago)85.5k—0%2MITPHPPHP ^7.3|^8.0CI failing

Since Dec 17Pushed 2y 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 1mo ago

READMEChangelogDependencies (7)Versions (13)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)[![License](https://camo.githubusercontent.com/400ce15646e3fe9a58bda70c157b9495263b5bed5bfc23fc07bdf61c9cda8046/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f6c61726176656c2d7461786f6e6f6d6965732f6c6963656e7365)](https://packagist.org/packages/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.

Install
-------

[](#install)

You can install this package via composer:

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

Setup
-----

[](#setup)

If using Laravel 5.5 or above, the service provider will automatically be registered.

If using Laravel 5.4 add `Myerscode\Laravel\Taxonomies\ServiceProvider` to the `providers` array in `config/app.php`

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

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 96.6% 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 ~193 days

Recently: every ~157 days

Total

10

Last Release

958d ago

Major Versions

1.2.2 → 7.0.02020-03-21

7.0.0 → 8.0.02021-01-07

PHP version history (4 changes)1.0.0PHP ~7.0

1.2.2PHP ^7.2

7.0.0PHP ^7.4

8.0.0PHP ^7.3|^8.0

### 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 (57 commits)")[![MarianadelaPazMedina](https://avatars.githubusercontent.com/u/97449354?v=4)](https://github.com/MarianadelaPazMedina "MarianadelaPazMedina (2 commits)")

---

Tags

eloquentlaravellaravel-modelslaravel-taxonomieslocalisationmariadbtaxonomyphplaravelwordpresslumeneloquenttagstaxonomytaxonomiesterms

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### 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

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[lecturize/laravel-taxonomies

Simple, nestable Terms &amp; Taxonomies (similar to WordPress) for Laravel.

10310.5k](/packages/lecturize-laravel-taxonomies)[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3059.0k](/packages/matchory-elasticsearch)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[salehhashemi/laravel-repository

Implementing the repository pattern for Laravel projects.

2010.5k](/packages/salehhashemi-laravel-repository)

PHPackages © 2026

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