Assuming a default server running on localhost with the default port, the command to connect to that Redis server would be:

$redis = new Redis();
$redis->connect('127.0.0.1', 6379);