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.
$redis = new Redis();
$redis->con<press Tab or press Ctrl+Space>
Do not forget to declare a variable type $ redis
/**
* Please do not forget to specify the variable type
* @var Redis
*/
public $redis = null;
- Install redis-server
- Install phpredis extension
- Download phpredis-phpdoc
Menu "File" -> "Settings" -> "PHP" -> Select path to folder "phpredis-phpdoc"
- Right click your project -> "Properties"
- Select the "PHP Include Path" category
- Click "Add Folder..."
- Select your checkout of phpredis-phpdoc
- Click "Open"
- Click "OK"