PHPackages                             twom/laravel-taggable - 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. twom/laravel-taggable

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

twom/laravel-taggable
=====================

taggable system

0.1(5y ago)12PHPPHP ^7.2

Since May 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Twom2020/laravel-taggable)[ Packagist](https://packagist.org/packages/twom/laravel-taggable)[ Docs](https://github.com/Twom2020/laravel-taggable)[ RSS](/packages/twom-laravel-taggable/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel File Manager
--------------------

[](#laravel-file-manager)

### Installation:

[](#installation)

```
composer require twom/laravel-taggable

```

You must add the service provider to `config/app.php`

```
'providers' => [
	 // for laravel 5.8 and below
	 \Twom\Taggable\TwomTaggableServiceProvider::class,
];
```

**Publish your config file and migrations**

```
php artisan vendor:publish

```

**Run migration**

> **Note:** create taggable tables.

```
php artisan migrate

```

---

### Config:

[](#config)

> config/taggable.php

```
return [
    'model' => \Twom\Taggable\Models\Tag::class,
    'filter_condition' => 'where', // can be 'like', this is default condition
];
```

Lets start to use:
------------------

[](#lets-start-to-use)

#### Your taggable model:

[](#your-taggable-model)

> **Note:** should be use the **Taggable** trait from `Twom\Taggable\Traits\Taggable`

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use Twom\Taggable\Traits\Taggable;

class Post extends Model
{
  use Taggable;

  public $timestamps = false;

  protected $fillable = [
	  'title', // and another fields
  ];
}
```

#### use of taggable options:

[](#use-of-taggable-options)

```
/** @var Post $post */
$post = Post::query()->find(1);

//	just add (attach) tags
$post->tag("sport,gym");

//	sync tags, detach all and attach passed tags
$post->stag("football");

//	delete (detach) tags
$post->detag("football");
```

typeexamplestring`"first tag,second tag"`array`["first tag", "second tag"]`

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

2179d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

tagTaggablelaravel-taggabletaggable system

### Embed Badge

![Health badge](/badges/twom-laravel-taggable/health.svg)

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

###  Alternatives

[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[sonata-project/classification-bundle

Symfony SonataClassificationBundle

913.2M20](/packages/sonata-project-classification-bundle)[silverstripe/tagfield

Tag field for SilverStripe

571.2M45](/packages/silverstripe-tagfield)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)

PHPackages © 2026

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