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

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

rockbuzz/lara-tags
==================

Tag management

9.0.0(1y ago)02.5kMITPHPPHP &gt;=8.1

Since Sep 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rockbuzz/lara-tags)[ Packagist](https://packagist.org/packages/rockbuzz/lara-tags)[ RSS](/packages/rockbuzz-lara-tags/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (21)Used By (0)

Lara Tags
=========

[](#lara-tags)

Tag management

[![](https://github.com/rockbuzz/lara-tags/workflows/Main/badge.svg)](https://github.com/rockbuzz/lara-tags/workflows/Main/badge.svg)

Requirements
------------

[](#requirements)

PHP &gt;=7.3

Install
-------

[](#install)

```
$ composer require rockbuzz/lara-tags
```

```
$ php artisan vendor:publish --provider="Rockbuzz\LaraTags\ServiceProvider" --tag="migrations"
```

```
$ php artisan migrate
```

Add the `Taggable` trait to the template for which you will have tags

```
use Rockbuzz\LaraTags\Traits\Taggable;

class Article extends Model
{
    use Taggable;
}
```

Usage
-----

[](#usage)

```
use Rockbuzz\LaraTags\Models\Tag;

$tag = Tag::findFromSlug('slug'); //instance or null
$tag = Tag::findFromSlug('slug', 'type'); //instance or null
```

```
$article = new Article();
$article->tags(); //MorphToMany
$article->tags; //Collection
$article->tagsWithType('type'); //Collection
$article->hasTag('tag_name'); //boolean
$article->hasTag($tagInstance); //boolean
```

Scopes

```
Article::withAnyTags($arrayTags);
Article::withAnyTags($arrayTags, 'type');
```

or

```
Article::withAnyTags($arrayIdTags);
Article::withAnyTags($arrayIdTags, 'type');
```

or

```
Article::withAnyTags($arrayNameTags);
Article::withAnyTags($arrayNameTags, 'type');
```

License
-------

[](#license)

The Lara Tags is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~74 days

Recently: every ~84 days

Total

20

Last Release

659d ago

Major Versions

0.1.0 → 1.0.02021-04-26

1.0.2 → 2.0.02023-08-24

2.0.1 → 3.0.02023-08-25

3.0.1 → 9.0.02024-07-28

PHP version history (5 changes)0.0.1PHP &gt;=7.1

0.0.4PHP &gt;=7.2

1.0.0PHP &gt;=7.3

2.0.0PHP &gt;=8.0

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a5c02aa268a45e5f1d9c67c331503d326eb4b49eb0fb80293dc7379ccef51f7?d=identicon)[rockbuzz](/maintainers/rockbuzz)

---

Top Contributors

[![tiagodevweb](https://avatars.githubusercontent.com/u/15040375?v=4)](https://github.com/tiagodevweb "tiagodevweb (48 commits)")[![paulohpsrock](https://avatars.githubusercontent.com/u/59696754?v=4)](https://github.com/paulohpsrock "paulohpsrock (2 commits)")[![rockbuzz-dev](https://avatars.githubusercontent.com/u/48301419?v=4)](https://github.com/rockbuzz-dev "rockbuzz-dev (1 commits)")

---

Tags

laraveltagscategories

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[aliziodev/laravel-taxonomy

Laravel Taxonomy is a flexible and powerful package for managing taxonomies, categories, tags, and hierarchical structures in Laravel applications. Features nested-set support for optimal query performance on hierarchical data structures.

23318.4k](/packages/aliziodev-laravel-taxonomy)[arcanedev/seo-helper

SEO Helper is a framework agnostic package that provides tools &amp; helpers for SEO (Laravel supported).

332467.0k4](/packages/arcanedev-seo-helper)[eusonlito/laravel-meta

A package to manage Header Meta Tags

196525.1k2](/packages/eusonlito-laravel-meta)[torann/laravel-meta-tags

A package to manage Header Meta Tags

65273.3k4](/packages/torann-laravel-meta-tags)[fomvasss/laravel-meta-tags

A package to manage SEO (meta-tags, xml-fields, etc.)

3028.9k](/packages/fomvasss-laravel-meta-tags)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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