firebase-php icon indicating copy to clipboard operation
firebase-php copied to clipboard

How use basic query

Open alejandri opened this issue 7 years ago • 0 comments

Hi thans for this project; I can installed and retrieve items from Database realtime

$firebase = new \Geckob\Firebase\Firebase(storage_path("file.json"));
$firebase->setPath('items/');
$items= $firebase->get('');
 $collection = collect(json_decode($items));

      // printing like this
      element1
      +"client_id": 32306296
      +"date": " 2018-10-10 20:00"
       element2
      +"client_id": 18774789
      +"date": " 2018-10-10 20:00"
     

Now how i can filter client_id this collection? Using: equalTo(32306296) ->startAt('a')->endAt('d') maybe?

alejandri avatar Aug 07 '18 17:08 alejandri