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

ActiveLibrary

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 yesterday

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 32% 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

2015d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[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.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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