Okay…found it.
I need to use range($start, $end) to set startkey and endkey. The method accept Array.
For the {}, I need to pass new stdClass.
$q = CouchbaseViewQuery::from(‘soemthing’, ‘something’)
->range([‘soemthing’], [‘something’, new stdClass]);