title: Trying to retrieving data from firebase to my php project but it's always return null
body: <p>I try to retrieving data from my firebase using kreait php but it's always return NULL even though the data is exist in my firebase database.</p>
  <p>here is my firebase
  <a href="https://i.stack.imgur.com/7HMZR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7HMZR.png" alt="enter image description here" /></a></p>
  <p>here is my code</p>
  <p><strong>connection.php</strong></p>
  <pre><code>&lt;?php
  
  require __DIR__.'/vendor/autoload.php';
  
  use Kreait\Firebase\Factory;
  
  $factory = (new Factory)-&gt;withServiceAccount('./includes/secret/db-wind-2ceca-672d70f2f4a8.json')-&gt;withDatabaseUri('https://db-wind-2ceca-default-rtdb.asia-southeast1.firebasedatabase.app');
  
  $auth = $factory-&gt;createAuth();
  $database = $factory-&gt;createDatabase();
  
  ?&gt;
  </code></pre>
  <p><strong>home.php</strong></p>
  <pre><code>  &lt;?php
    session_start();
    if($_SESSION['user'] == false) {
      header('Location:index.php');
    }
    set_include_path(__DIR__);
    require('includes/koneksi.php');
  
    $reference = $database-&gt;getReference('db-wind-2ceca-default-rtdb/Crosswind1/');
    $value     = $reference-&gt;getValue();
    var_dump($value);die; // return: null
    ?&gt;
  </code></pre>