thanhct / firebase-php
Firebase Admin SDK
3.9.4
2018-02-03 15:17 UTC
Requires
- php: ^7.0
- ext-mbstring: *
- ext-openssl: *
- fig/http-message-util: ^1.1
- google/auth: ^0.11.0|^1.0
- guzzlehttp/guzzle: ^6.2.1
- kreait/firebase-tokens: ^1.1.1
- lcobucci/jwt: ^3.2
- mtdowling/jmespath.php: ^2.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpstan/phpstan-phpunit: ^0.9.2
- phpunit/phpunit: ^6.0
- dev-master
- 3.9.4
- 3.9.3
- 3.9.2
- 3.9.1
- 3.9.0
- 3.8.2
- 3.8.1
- 3.8.0
- 3.7.1
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta1
- 1.2.2
- 1.2.1
- 1.2
- 1.1.1
- 1.1
- 1.0.1
- 1.0
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.1
- 0.9
- 0.8
- 0.7
- 0.6.2
- 0.6.1
- 0.6
- 0.5
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2
- 0.1.1
- 0.1
This package is not auto-updated.
Last update: 2025-03-21 23:59:37 UTC
README
Interact with Google Firebase from your PHP application.
Quickstart
Full documentation at firebase-php.readthedocs.io.
composer require thanhct/firebase-php 3.9.4
<?php require __DIR__.'/vendor/autoload.php'; use Kreait\Firebase\Factory; use Kreait\Firebase\ServiceAccount; $serviceAccount = ServiceAccount::fromJsonFile(__DIR__.'/google-service-account.json'); $firebase = (new Factory) ->withServiceAccount($serviceAccount) ->withDatabaseUri('https://my-project.firebaseio.com') ->create(); $database = $firebase->getDatabase(); $newPost = $database ->getReference('blog/posts') ->push([ 'title' => 'Post title', 'body' => 'Post body' ]); $newPost->getChild('title')->set('Changed post title'); $newPost->remove();
For errors and missing features, please use the issue tracker.
For general support, join the #php
channel at https://firebase.community/.