PHPackages                             webpress/tag-manager - 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. webpress/tag-manager

ActiveLibrary

webpress/tag-manager
====================

Webpress tag manager

3.1.87(4y ago)12.8k54PHPCI failing

Since Jun 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/webpress-vn/tag-manager)[ Packagist](https://packagist.org/packages/webpress/tag-manager)[ RSS](/packages/webpress-tag-manager/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (5)Versions (134)Used By (4)

Tag Manager Package for Laravel
===============================

[](#tag-manager-package-for-laravel)

- [Tag Manager Package for Laravel](#tag-manager-package-for-laravel)
    - [Installation](#installation)
        - [Composer](#composer)
    - [Configuration](#configuration)
        - [Model and Transformer](#model-and-transformer)
        - [Auth middleware](#auth-middleware)
    - [Query functions provide](#query-functions-provide)
        - [List of query functions](#list-of-query-functions)
        - [Use](#use)
        - [For example](#for-example)
    - [Routes](#routes)

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

[](#installation)

### Composer

[](#composer)

To include the package in your project, Please run following command.

```
composer require webpress/tag-manager

```

Configuration
-------------

[](#configuration)

### Model and Transformer

[](#model-and-transformer)

You can use your own model and transformer class by modifying the configuration file `config\tag.php`

```
'models'          => [
    'tag' => App\Entities\Tag::class,
],

'transformers'    => [
    'tag' => App\Transformers\TagTransformer::class,
],
```

Your `Tag` model class must implements `VCComponent\Laravel\Tag\Contracts\TagSchema` and `VCComponent\Laravel\Tag\Contracts\TagManagement`

### Auth middleware

[](#auth-middleware)

Configure auth middleware in configuration file `config\tag.php`

```
'auth_middleware' => [
        'admin'    => [
            'middleware' => 'jwt.auth',
            'except'     => ['index'],
        ],
        'frontend' => [
            'middleware' => 'jwt.auth',
            'except'     => ['index'],
        ],
],
```

Query functions provide
-----------------------

[](#query-functions-provide)

### List of query functions

[](#list-of-query-functions)

Scope a query to only include published tags.

```
public function scopeIsPublished($query)
```

Scope a query to sort tags by name column.

```
public function scopeSortByName($query, $order = 'asc')
```

Scope a query to sort tags by usage time. From hight to low.

```
public function scopeMostUsed($query, $tagable_type = null)
```

Scope a query to sort tags by usage time. From low to hight.

```
public function scopeLeastUsed($query, $taggable_type = null)
```

### Use

[](#use)

Use Trait.

```
namespace App\Model;

use VCComponent\Laravel\Tag\Traits\TagQueryTrait;

class Tag
{
    use TagQueryTrait;
    \\
}
```

Extend `VCComponent\Laravel\Tag\Entities\Tag` Entity.

```
namespace App\Model;

use VCComponent\Laravel\Tag\Entities\Tag as BaseTag;

class Tag extends BaseTag
{
    \\
}
```

### For example

[](#for-example)

```
$category = Tag::isPublished()->mostUsed()->get();
```

Routes
------

[](#routes)

The api endpoint should have these format:

VerbURIGET/api/admin/tagsGET/api/admin/tags/allGET/api/admin/tags/{id}POST/api/admin/tagsPUT/api/admin/tags/{id}DELETE/api/admin/tags/{id}PUT/api/admin/tags/status/bulkPUT/api/admin/tags/status/{id}--------GET/api/tags/allGET/api/tags/{id}POST/api/tagsPUT/api/tags/{id}DELETE/api/tags/{id}

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 52.8% 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 ~4 days

Total

131

Last Release

1601d ago

Major Versions

0.0.5 → 1.2.12021-01-08

0.18.0 → 1.5.02021-06-28

1.5.0 → 2.0.02021-06-28

1.4.0 → 2.1.12021-07-06

2.1.1 → 3.0.12021-07-08

### Community

Maintainers

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

---

Top Contributors

[![sonhaichu](https://avatars.githubusercontent.com/u/34597093?v=4)](https://github.com/sonhaichu "sonhaichu (19 commits)")[![hieunn-vicoders](https://avatars.githubusercontent.com/u/85284968?v=4)](https://github.com/hieunn-vicoders "hieunn-vicoders (8 commits)")[![duylive](https://avatars.githubusercontent.com/u/61527670?v=4)](https://github.com/duylive "duylive (3 commits)")[![taeung123](https://avatars.githubusercontent.com/u/13556079?v=4)](https://github.com/taeung123 "taeung123 (3 commits)")[![minhquang19](https://avatars.githubusercontent.com/u/81901736?v=4)](https://github.com/minhquang19 "minhquang19 (2 commits)")[![hieu-pv](https://avatars.githubusercontent.com/u/7848185?v=4)](https://github.com/hieu-pv "hieu-pv (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webpress-tag-manager/health.svg)

```
[![Health](https://phpackages.com/badges/webpress-tag-manager/health.svg)](https://phpackages.com/packages/webpress-tag-manager)
```

###  Alternatives

[backpack/pagemanager

Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.

371522.6k6](/packages/backpack-pagemanager)[backpack/newscrud

An admin panel for news with categories and tags, using Backpack\\CRUD on Laravel 5.

236159.6k1](/packages/backpack-newscrud)[vanilo/framework

E-commerce Framework for Laravel

86365.7k2](/packages/vanilo-framework)[binshops/laravel-blog

Simple blog package (with admin panel) for Laravel. Includes all views, controllers, routes and can add a blog to any existing Laravel app. Fully customisable blog (view, urls, and many other options). Includes image uploads and a pretty admin interface to manage your blog. Defaults to /blog but you can change it to anything.

48447.0k](/packages/binshops-laravel-blog)[konekt/appshell

Foundation for Laravel business applications

8257.1k2](/packages/konekt-appshell)[lecturize/laravel-taxonomies

Simple, nestable Terms &amp; Taxonomies (similar to WordPress) for Laravel.

10310.5k](/packages/lecturize-laravel-taxonomies)

PHPackages © 2026

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