PHPackages                             amalikov/taggy - 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. amalikov/taggy

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

amalikov/taggy
==============

An Eloquent tagging package for laravel

2.0.0(5y ago)94MITPHPPHP ^7.1.3

Since Nov 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AlexMalikov94/taggy)[ Packagist](https://packagist.org/packages/amalikov/taggy)[ RSS](/packages/amalikov-taggy/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Laravel Taggy
-------------

[](#laravel-taggy)

[![Build Status](https://camo.githubusercontent.com/318d1cbb1cb3aba93ca5c52a54b3f2b794369a15f1b483e0894bbe9e16cebdd1/68747470733a2f2f7472617669732d63692e6f72672f416c65784d616c696b6f7639342f74616767792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/github/AlexMalikov94/taggy)[![Total Downloads](https://camo.githubusercontent.com/8769533c86f4b74c460de572c8a4922722e4f40a5b70dc5d3f1f4740a372ea26/68747470733a2f2f706f7365722e707567782e6f72672f616d616c696b6f762f74616767792f646f776e6c6f616473)](//packagist.org/packages/amalikov/taggy)[![Latest Stable Version](https://camo.githubusercontent.com/614fa9fbedd19827128e5695a1d083ac079a6b6bc58b99a4b6955811b2ad8fc0/68747470733a2f2f706f7365722e707567782e6f72672f616d616c696b6f762f74616767792f76)](//packagist.org/packages/amalikov/taggy)[![Latest Unstable Version](https://camo.githubusercontent.com/3abff545d5594b33b8e3eee307cd9821a333cf3054198e1f8b852343bb88eb7d/68747470733a2f2f706f7365722e707567782e6f72672f616d616c696b6f762f74616767792f762f756e737461626c65)](//packagist.org/packages/amalikov/taggy)[![License](https://camo.githubusercontent.com/7f549db5e8551a23bee9d9c6d4c4c5ae4620161f7255998b193bec04fdd4afb6/68747470733a2f2f706f7365722e707567782e6f72672f616d616c696b6f762f74616767792f6c6963656e7365)](//packagist.org/packages/amalikov/taggy)

An Eloquent tagging package for Laravel

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
composer require amalikov/taggy

```

The final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.

`Amalikov\Taggy\TaggyServiceProvider::class`

Go to the terminal in folder that you are migrate the `tags` and `taggable` tables:

`php artisan migrate`

Usage
-----

[](#usage)

Add the `TaggableTrait` trait to a model you like to use `tags` on.

```
use Amalikov\Taggy\TaggableTrait;

class YourEloquentModel extends Model
{
    use TaggableTrait;
}

```

Create a tags data for table that you use for example in controller or whatever place you want:

```
use Illuminate\Support\Str;

$tags = Tag::create([
 'name' => 'Tag Name',
 'slug' => Str::slug('Tag Name')
]);

```

You just need to pass the data that working with the models

```
$model = new YourEloquentModel;
$model->title = 'Test';
$model->save();

```

Set a new tags
--------------

[](#set-a-new-tags)

You can set a new tags like this:

```
$model->tag(['your_tag_name']);

```

Untag existing tags
-------------------

[](#untag-existing-tags)

You can untag existing tag

```
$model->untag(['your_tag_name']);

```

Untag all tags
--------------

[](#untag-all-tags)

```
$model->untag();

```

Retag existing tag
------------------

[](#retag-existing-tag)

```
$model->retag(['your_tag_name']);

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2067d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90cf56bb60a2395a6f8c61ae3ee3b41193bda2cd21049e0e7cbed3385233da7a?d=identicon)[AlexMalikov94](/maintainers/AlexMalikov94)

---

Top Contributors

[![ishifoev](https://avatars.githubusercontent.com/u/34019391?v=4)](https://github.com/ishifoev "ishifoev (20 commits)")

---

Tags

laravelphptaggy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amalikov-taggy/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

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

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

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

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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