PHPackages                             usamamuneerchaudhary/laravel-tagify - 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. usamamuneerchaudhary/laravel-tagify

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

usamamuneerchaudhary/laravel-tagify
===================================

An Eloquent Tagging package for Laravel 10

1.0.3(3y ago)223.1k↑35%MITPHPPHP ^8.1

Since Feb 24Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

[![image](https://camo.githubusercontent.com/1384bedfbda1e2a1f541c01e4b290ccf988d6c2423a6dd09e49bd946ebf1eb2d/68747470733a2f2f7777772e6c696e6b706963747572652e636f6d2f712f7461676966792e706e67)](https://thewebtier.com)

### Tagify is a simple Tagging Package for Laravel

[](#tagify-is-a-simple-tagging-package-for-laravel)

Using this package, you can simply tag, untag or retag any existing model in your laravel app.

Here's a quick example of what you can do in your models to enable tagging:

- *This package supports Laravel 10*
- *Minimum PHP v8.1 supported*

```
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Usamamuneerchaudhary\LaravelTagify\Taggable;

class Lesson extends Model
{
    use Taggable;
}

```

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

[](#installation)

You can install the package via composer:

`composer require usamamuneerchaudhary/laravel-tagify`

Run Migrations
--------------

[](#run-migrations)

Once the package is installed, you can run migrations,

`php artisan migrate`

Service Provider
----------------

[](#service-provider)

Don't forget to add the ServiceProvider in `app.php`:

```
Usamamuneerchaudhary\LaravelTagify\TagifyServiceProvider::class,

```

Usage &amp; Some basic functions
--------------------------------

[](#usage--some-basic-functions)

Add Tags to a Model

```
$tags =['Laravel','PHP'];
$model->tag($tags);

```

Untag a tag

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

```

Untag all tags

```
$model->untag();

```

Re-tag a tag to a model

```
$model->retag(['Eloquent','mysql']);

```

Get all tags

```
$model->tags;

```

You can also use scopes to get tags associated likeso,

```
App\Model\Lesson::withAllTags(['laravel','php']); //will return if has all tags
App\Model\Lesson::withAnyTags(['laravel','php','python']); //will only return the ones associated, and ignore the
ones which are not.
App\Model\Lesson::hasTags(['laravel','php']); //check if a model has tags

```

Tests
-----

[](#tests)

`composer test`

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Usama Muneer](https://github.com/usamamuneerchaudhary)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~0 days

Total

4

Last Release

1218d ago

### Community

Maintainers

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

---

Top Contributors

[![usamamuneerchaudhary](https://avatars.githubusercontent.com/u/24513380?v=4)](https://github.com/usamamuneerchaudhary "usamamuneerchaudhary (8 commits)")

---

Tags

laraveltaggingusamamuneerchaudharytaggableslaravel-taggingtagify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/usamamuneerchaudhary-laravel-tagify/health.svg)

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

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

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

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k322.4k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567714.4k4](/packages/cviebrock-eloquent-taggable)

PHPackages © 2026

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