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
/** * @ Var Redis */ public $redis = null;