thanhct/firebase-php
Composer 安装命令:
composer require thanhct/firebase-php
包简介
Firebase Admin SDK
README 文档
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/.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-03