PHPackages                             websystem/tags - 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. websystem/tags

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

websystem/tags
==============

Add tags and taggable behaviour to your Laravel app

v0.0.2(3y ago)14MITPHPPHP ^8.0

Since Jul 18Pushed 3y agoCompare

[ Source](https://github.com/WebSystem-studio/Lara-tags)[ Packagist](https://packagist.org/packages/websystem/tags)[ Docs](https://github.com/WebSystem-studio/Laravel-tags)[ RSS](/packages/websystem-tags/feed)WikiDiscussions master Synced 1mo ago

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

Add tags and taggable behaviour to a Laravel app
================================================

[](#add-tags-and-taggable-behaviour-to-a-laravel-app)

[![Overview Lara-tags](/overview.png)](/overview.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/919fbab2db29506a1d4fcb9d40bf272daa392ca3a5611cc12c8e561521b21d2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77656273797374656d2f746167732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/websystem/tags)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/d1122d6fe7a2b444170855e5cfda15d7664a37177c7255b0c2da197eed05282a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77656273797374656d2f746167732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/websystem/tags)

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

[](#installation)

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

Run the Composer require command from the Terminal:

```
composer require websystem/tags

```

After that, you need to run migrations.

```
php artisan migrate

```

Usage
-----

[](#usage)

Here are some code examples:

```
// apply HasTags trait to a model
use Illuminate\Database\Eloquent\Model;
use Websystem\Tags\HasTags;

class Lesson extends Model
{
    use HasTags;

    // ...
}
```

```
// create a model tag
use Illuminate\Support\Str;

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

```
// create a model lesson ex.
$lesson = Lesson::create([
 'title' => 'Lesson Title',
]);
```

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

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

Attaching tags

```
$lesson->tag(['your_tag_name', '...']);
```

Untag
-----

[](#untag)

Detaching tags

```
// detach a tag
$lesson->untag(['your_tag_name', '...']);

// detach all tags
$lesson->untag();
```

Retag
-----

[](#retag)

Retaging tags

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

2

Last Release

1399d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b5eb0cbc49192d1bdd67e4e7a49c21e401a1870af1b5ae190eb3f45672c55a0?d=identicon)[Martin-1182](/maintainers/Martin-1182)

---

Top Contributors

[![Martin-1182](https://avatars.githubusercontent.com/u/58297666?v=4)](https://github.com/Martin-1182 "Martin-1182 (46 commits)")

---

Tags

laravel-tagswebsystem

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/websystem-tags/health.svg)

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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