Fatal error: Class 'Couchbase' not found

Hi Brett,

Yes, I’m already using CouchbaseCluster and CouchbaseBucket together.

$server = json_decode(file_get_contents("server.json")); 
$host = $server->couchbase->host; 
$bucket = $server->couchbase->bucket;
$password = $server->couchbase->password;

$cluster = new CouchbaseCluster($host);

$bucket = $cluster->openBucket($bucket, $password);

$query = CouchbaseViewQuery::from($bucket , "by_player")->limit(10);

“$query = CouchbaseViewQuery::from($bucket , “by_player”)->limit(10);” <— it will say CouchbaseViewQuery not found.

In fact, I’m also getting another problem with memory.