library phpredis_cluster_phpdoc
@phpdoc extension phpredis cluster for IDE autocomplete
zgb7mtr/phpredis_cluster_phpdoc
@phpdoc extension phpredis cluster for IDE autocomplete
- Friday, March 23, 2018
- by zgb7mtr
- Repository
- 2 Watchers
- 4 Stars
- 7,089 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 2 Versions
- 17 % Grown
phpredis_cluster_phpdoc
You need to add the path to a class of global include path., (*1)
After that, your IDE, when you declare a class Redis will display a hint which methods of this object can be used., (*2)
For example:
$redisCluster = new RedisCluster(null,['127.0.0.1:6379']);
$redisCluster->se<press Tab or press Ctrl+Space>
Install
Setup in IDE PhpStorm
Menu "File" -> "Settings" -> "Languages & Frameworks" -> "PHP" -> "Include Path" -> Select path to folder "phpredis_cluster_phpdoc", (*5)
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"