PHPackages                             oleaass/laravel-tags - 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. oleaass/laravel-tags

ActiveLaravel-package[Utility &amp; Helpers](/categories/utility)

oleaass/laravel-tags
====================

Add tags to any Laravel project

v1.0.0(5y ago)05MITPHP

Since Apr 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/oleaass/laravel-tags)[ Packagist](https://packagist.org/packages/oleaass/laravel-tags)[ RSS](/packages/oleaass-laravel-tags/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Add tags to Eloquent models in Laravel
======================================

[](#add-tags-to-eloquent-models-in-laravel)

This package allows you to easily add tags to any Eloquent model you have in your Laravel application

```
$post = \App\Models\Post::create([
    'title' => 'My first post'
]);

$tag = \OleAass\Tags\Models\Tag::create([
    'name' => 'My tag'
]);

$post->tags()->attach([$tag->id]);
```

Installation
------------

[](#installation)

```
$ composer require oleaass/laravel-tags
$ php artisan migrate # This will create two new database tables 'tags' & 'taggables'

```

Add tags to your Eloquent model
-------------------------------

[](#add-tags-to-your-eloquent-model)

```
namespace App\Models;

use OleAass\Tags\Taggable;

class Post extends Model
{
    use Taggable;
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1842d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46921124?v=4)[Ole Aass](/maintainers/oleaass)[@oleaass](https://github.com/oleaass)

---

Top Contributors

[![oleaass](https://avatars.githubusercontent.com/u/46921124?v=4)](https://github.com/oleaass "oleaass (2 commits)")

### Embed Badge

![Health badge](/badges/oleaass-laravel-tags/health.svg)

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

PHPackages © 2026

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