neojato/firebase-php-gae

GAE Firebase PHP Client

1.0.0 2016-09-16 20:17 UTC

This package is not auto-updated.

Last update: 2024-12-11 20:02:15 UTC


README

forked from: ktamas77/firebase-php

unit tests are included in tests directory.

Based on the Firebase REST API.

Reworked for use on Google App Engine PHP Runtime by replacing cURL requests with GAE's URL Fetch API. See GAE URL Fetch PHP API for more information.

Supported Commands

// -- Firebase API commands

$firebase->set($path, $value);   // stores data in Firebase
$value = $firebase->get($path);  // reads a value from Firebase
$firebase->delete($path);        // deletes value from Firebase
$firebase->update($path, $data); // updates data in Firebase
$firebase->push($path, $data);   // push data to Firebase

// -- Firebase PHP Library commands

$firebase->setToken($token);     // set up Firebase token
$firebase->setBaseURI($uri);     // set up Firebase base URI (root node)
$firebase->setTimeOut($seconds); // set up maximum timeout / request

Please refer to ktamas77/firebase-php for further details.

Add using composer

cd <your_project>
composer require neojato/firebase-php-gae