zgb7mtr/phpredis_cluster_phpdoc

@phpdoc extension phpredis cluster for IDE autocomplete

1.2.1 2021-04-21 03:38 UTC

This package is auto-updated.

Last update: 2024-10-13 09:42:30 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

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"