PHPackages                             denismitr/tagging - 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. denismitr/tagging

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

denismitr/tagging
=================

A tagging package for Laravel

1.15(9y ago)110MITPHPPHP &gt;=5.5.0

Since Jan 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/denismitr/tagging)[ Packagist](https://packagist.org/packages/denismitr/tagging)[ RSS](/packages/denismitr-tagging/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

Laravel Tagging Package
=======================

[](#laravel-tagging-package)

Author
------

[](#author)

[Denis Mitrofanov](https://thecollection.ru)

### Installation

[](#installation)

```
composer require denismitr/tagging
```

Set Service provider

```
Denismitr\Tagging\TaggingServiceProvider::class
```

Add trait to your model

```
use Taggable;
```

### Available API

[](#available-api)

Methods on the trait

```
/**
 * Get tags relationship
 *
 * @return MorphToMany
 */
public function tags()

/**
 * Tag with one or more tags
 *
 * @param  array|string|Tag $tags
 * @return void
 */
public function tag($tags)

/**
 * Remove tag or tags
 *
 * @param  array|string|Tag $tags
 * @return void
 */
public function untag($tags = null)

/**
 * Remove all tags and then add tag or tags
 *
 * @param  array|string|Tag $tags
 * @return void
 */
public function retag($tags)
```

Scopes on the trait

```
public function scopeWithAnyTag($query, array $tags)

public function scopeWithAllTag($query, array $tags)

public function scopeHasTags($query, array $tags)

public function scopeUsedGte($query, $count)

public function scopeUsedGt($query, $count)

public function scopeUsedLte($query, $count)

public function scopeUsedLt($query, $count)
```

### Version 1.1

[](#version-11)

### LICENSE

[](#license)

[MIT](/license.txt)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~17 days

Recently: every ~10 days

Total

7

Last Release

3358d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d68ae5d5ca94f49a69f961a7825865d92247b09e276a25fcc6ad485d4c8c964?d=identicon)[denismitr](/maintainers/denismitr)

---

Top Contributors

[![denismitr](https://avatars.githubusercontent.com/u/16356446?v=4)](https://github.com/denismitr "denismitr (10 commits)")

---

Tags

laraveltagstagging

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/denismitr-tagging/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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