It looks like that unofficial PHP / Firebase library does not currently support authentication, (see https://github.com/ktamas77/firebase-php/issues/1 and stackoverflow.com/questions/15953505/firebase-php-curl-authentication/15953974.
I would recommend forking the project and adding a .auth
method which hangs on to your token and automatically adds it to each request after the addition of .json
on https://github.com/ktamas77/firebase-php/blob/master/firebaseLib.php#L63. Don't forget to submit a pull request to improve that library for others!