ktamas77 / firebase-php

Firebase PHP Client
791 stars 215 forks source link

The actual Firebase class seems to be missing? #24

Closed koppelaar closed 9 years ago

koppelaar commented 9 years ago

I'm probably an idiot for asking this, but when running the example I get this:

Fatal error: Class 'Firebase' not found in (.....)/firebase-php/index.php on line 8

The code I'm using is this:

<?php
require 'autoload.php';

const DEFAULT_URL = 'https://xxxx.firebaseio.com';
const DEFAULT_TOKEN = 'yyyy';
const DEFAULT_PATH = '';

$firebase = new Firebase(DEFAULT_URL, DEFAULT_TOKEN);

$test = array(
    "foo" => "bar",
    "i_love" => "lamp",
    "id" => 42
);

$dateTime = new DateTime();

$firebase->set(DEFAULT_PATH . '/' . $dateTime->format('c'), $test);

?>
jjok commented 9 years ago

It seems to be called FirebaseLib now.

jjok commented 9 years ago

The README needs updating.

jjok commented 9 years ago

Duplicate of #22.

ktamas77 commented 9 years ago

Readme is updated, it should be straightforward now. Thank you for your note.