PHPackages                             ukko/phpredis-phpdoc - 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. ukko/phpredis-phpdoc

ActiveLibrary[Caching](/categories/caching)

ukko/phpredis-phpdoc
====================

@phpdoc extension phpredis for IDE autocomplete

5.0.1-beta8(5y ago)216490.1k—7.2%78[8 issues](https://github.com/ukko/phpredis-phpdoc/issues)[1 PRs](https://github.com/ukko/phpredis-phpdoc/pulls)11MITPHPPHP &gt;=7.0

Since Jul 28Pushed 5y ago13 watchersCompare

[ Source](https://github.com/ukko/phpredis-phpdoc)[ Packagist](https://packagist.org/packages/ukko/phpredis-phpdoc)[ Docs](https://github.com/ukko/phpredis-phpdoc)[ RSS](/packages/ukko-phpredis-phpdoc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (10)Used By (11)

You need to add the path to a class of global include path.

After that, your IDE, when you declare a class Redis will display a hint which methods of this object can be used.

### For example:

[](#for-example)

```
$redis = new Redis();
$redis->con

```

### Warning:

[](#warning)

Do not forget to declare a variable type $ redis

```
/**
 * Please do not forget to specify the variable type
 * @var Redis
 */
public $redis = null;

```

[![Example of use](https://github.com/ukko/phpredis-phpdoc/raw/master/redisphp.png)](https://github.com/ukko/phpredis-phpdoc/raw/master/redisphp.png)

### Install

[](#install)

- Install [redis-server](http://redis.io/download)
- Install [phpredis extension](https://github.com/nicolasff/phpredis)
- The simpliest way to install and use phpredis-phpdoc is to use Composer, as there is a [package on Packagist](https://packagist.org/packages/ukko/phpredis-phpdoc). Just add this to your project composer.json file :

    { "require": { "ukko/phpredis-phpdoc": "\*" }, "minimum-stability": "dev" }
- Or direct download [phpredis-phpdoc](https://github.com/ukko/phpredis-phpdoc/tarball/master)

### Setup in IDE PhpStorm

[](#setup-in-ide-phpstorm)

Menu "File" -&gt; "Settings" -&gt; "PHP" -&gt; *Select path to folder "phpredis-phpdoc"*

### Setup in IDE NetBeans

[](#setup-in-ide-netbeans)

- Save the file to netbeans stubs folder. For example: `~/netbeans-8.2/php/phpstubs/phpruntime/redis.php`

### Setup in Zend Studio IDE (Eclipse PDT)

[](#setup-in-zend-studio-ide-eclipse-pdt)

- Open "Window" -&gt; "Preferences"
- In preferences dialog open "PHP" -&gt; "PHP Libriaries"
- Click "New" button, in "User library name" enter "Redis", click "OK"
- Select newly created "Redis", library Click "Add external folder", select path to the folder which contains your checkout of phpredis-phpdoc or you can download single "Redis.php" file
- Include your custom library in your project: open "Project" -&gt; "Properties" -&gt; "PHP Include Path", click add library, select "User library", click "Next", check "Redis", click "Finish"

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.3% 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 ~77 days

Recently: every ~133 days

Total

8

Last Release

1942d ago

PHP version history (2 changes)5.0.1-beta1PHP &gt;=5.3.0

5.0.1-beta2PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![ukko](https://avatars.githubusercontent.com/u/125308?v=4)](https://github.com/ukko "ukko (94 commits)")[![SHyx0rmZ](https://avatars.githubusercontent.com/u/654223?v=4)](https://github.com/SHyx0rmZ "SHyx0rmZ (22 commits)")[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (11 commits)")[![Leneshka-jb](https://avatars.githubusercontent.com/u/23384686?v=4)](https://github.com/Leneshka-jb "Leneshka-jb (8 commits)")[![doodoori2](https://avatars.githubusercontent.com/u/418882?v=4)](https://github.com/doodoori2 "doodoori2 (3 commits)")[![rybakit](https://avatars.githubusercontent.com/u/533861?v=4)](https://github.com/rybakit "rybakit (2 commits)")[![jstanden](https://avatars.githubusercontent.com/u/63288?v=4)](https://github.com/jstanden "jstanden (2 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (2 commits)")[![cmyker](https://avatars.githubusercontent.com/u/1872718?v=4)](https://github.com/cmyker "cmyker (2 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (1 commits)")[![hackpnz](https://avatars.githubusercontent.com/u/1333603?v=4)](https://github.com/hackpnz "hackpnz (1 commits)")[![Huggyduggy](https://avatars.githubusercontent.com/u/2580306?v=4)](https://github.com/Huggyduggy "Huggyduggy (1 commits)")[![iyesin](https://avatars.githubusercontent.com/u/13554666?v=4)](https://github.com/iyesin "iyesin (1 commits)")[![lBeJIuk](https://avatars.githubusercontent.com/u/13604404?v=4)](https://github.com/lBeJIuk "lBeJIuk (1 commits)")[![mreloaded](https://avatars.githubusercontent.com/u/36773122?v=4)](https://github.com/mreloaded "mreloaded (1 commits)")[![natsimhan](https://avatars.githubusercontent.com/u/5631475?v=4)](https://github.com/natsimhan "natsimhan (1 commits)")[![rajivnavada](https://avatars.githubusercontent.com/u/325765?v=4)](https://github.com/rajivnavada "rajivnavada (1 commits)")[![rickywiens](https://avatars.githubusercontent.com/u/675907?v=4)](https://github.com/rickywiens "rickywiens (1 commits)")[![runmanz](https://avatars.githubusercontent.com/u/12505308?v=4)](https://github.com/runmanz "runmanz (1 commits)")[![sebb](https://avatars.githubusercontent.com/u/192541?v=4)](https://github.com/sebb "sebb (1 commits)")

---

Tags

phpphpredisredishelperredisphpredis

### Embed Badge

![Health badge](/badges/ukko-phpredis-phpdoc/health.svg)

```
[![Health](https://phpackages.com/badges/ukko-phpredis-phpdoc/health.svg)](https://phpackages.com/packages/ukko-phpredis-phpdoc)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[longman/laravel-lodash

Add more functional to Laravel

9792.9k](/packages/longman-laravel-lodash)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5211.0M13](/packages/clue-redis-protocol)[vetruvet/laravel-phpredis

Use phpredis as the redis connection in Laravel

43123.7k](/packages/vetruvet-laravel-phpredis)

PHPackages © 2026

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