zgb7mtr / phpredis_cluster_phpdoc
@phpdoc extension phpredis cluster for IDE autocomplete
Installs: 41 275
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 4
Open Issues: 2
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-11-13 09:49:17 UTC
README
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:
$redisCluster = new RedisCluster(null,['127.0.0.1:6379']);
$redisCluster->se<press Tab or press Ctrl+Space>
Install
-
Install redis-server
-
Install phpredis extension
-
The simpliest way to install and use phpredis_cluster_phpdoc is to use Composer, as there is a package on Packagist. Just add this to your project composer.json file :
{ "require": { "zgb7mtr/phpredis_cluster_phpdoc": "*" }, "minimum-stability": "dev" }
-
Or direct download phpredis_cluster_phpdoc
Setup in IDE PhpStorm
Menu "File" -> "Settings" -> "Languages & Frameworks" -> "PHP" -> "Include Path" -> Select path to folder "phpredis_cluster_phpdoc"
Setup in IDE NetBeans
- Right click your project -> "Properties"
- Select the "PHP Include Path" category
- Click "Add Folder..."
- Select your checkout of phpredis_cluster_phpdoc
- Click "Open"
- Click "OK"
Setup in Zend Studio IDE (Eclipse PDT)
- Open "Window" -> "Preferences"
- In preferences dialog open "PHP" -> "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_cluster_phpdoc or you can download single "RedisCluster.php" file https://raw.github.com/zgb7mtr/phpredis_cluster_phpdoc/master/src/RedisCluster.php
- Include your custom library in your project: open "Project" -> "Properties" -> "PHP Include Path", click add library, select "User library", click "Next", check "Redis", click "Finish"