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)131MITPHP &gt;=5.3.3

Since Jun 7Compare

[ 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 Synced yesterday

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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

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

3676d 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

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32136.0k](/packages/beryllium-cachebundle)

PHPackages © 2026

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