PHPackages                             tags/php-redis-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. [Caching](/categories/caching)
4. /
5. tags/php-redis-tagging

ActiveLibrary[Caching](/categories/caching)

tags/php-redis-tagging
======================

A PHP Redis Tagging System

1.0.0(10y ago)1311MITPHPPHP &gt;=5.3.3

Since Jun 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/feixiang/php-redis-tagging)[ Packagist](https://packagist.org/packages/tags/php-redis-tagging)[ RSS](/packages/tags-php-redis-tagging/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Redis Tagging
=============

[](#redis-tagging)

Redis Tagging is a simple, fast open source PHP Tagging System.

### Install

[](#install)

If you have Composer, just include RedisTagging as a project dependency in your `composer.json`. If you don't just install it by downloading the .ZIP file and extracting it to your project directory.

```
require: {
    "tags/php-redis-tagging": "dev-master"
}

```

### Examples

[](#examples)

First, `use` the RedisTagging namespace:

```
public function demo()
{
    $redisTagging = new RedisTagging();

    // optional,default to "default"
    $redisTagging->bucket("default");

    // set a tag
    $tags = [
        'tag1' => [
            [
                'member' => "a1",
                'score' => 1
            ],
            [
                'member' => "a2",
                'score' => 2
            ]
        ],
        'tag2' => [
            [
                'member' => "a1",
                'score' => 2
            ],
            [
                'member' => "b2",
                'score' => 4
            ],
            [
                'member' => "b3",
                'score' => 3
            ]
        ]
    ];
    foreach ($tags as $tag => $item) {
        $redisTagging->set($tag, $item);
    }

    // get a tag
    $result = $redisTagging->get('tag1');

    // want page limit ?
    $result = $redisTagging->offset(0)->limit(10)->get('tag1');

    // get interset of tags
    $result = $redisTagging->offset(10)->limit(10)->type('inter')->get(['tag1', 'tag2']);

    // order ?
    $result = $redisTagging->offset(10)->limit(10)->type('inter')->order('desc')->get(['tag1', 'tag2']);

    // get hottest tags
    $result = $redisTagging->topTags(3);

}
```

more information,read the code please or issue me , it's quite simple

---

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3721d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/339298?v=4)[feixiang](/maintainers/feixiang)[@feixiang](https://github.com/feixiang)

### Embed Badge

![Health badge](/badges/tags-php-redis-tagging/health.svg)

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)

PHPackages © 2026

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