定制 kreait/firebase-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kreait/firebase-php

Composer 安装命令:

composer require kreait/firebase-php

包简介

Firebase Admin SDK

README 文档

README

Firebase Admin SDK for PHP

Firebase Admin PHP SDK Logo

Current version Monthly Downloads Total Downloads
CI Secure Tests Docs Sponsor

Important

Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications. If it saves you or your team time, please consider sponsoring its development.

Note

The project moved from the kreait to the beste GitHub Organization in January 2026. The namespace remains Kreait\Firebase and the package name remains kreait/firebase-php. Please update your remote URL if you have forked or cloned the repository.

Overview

Firebase provides the tools and infrastructure you need to develop your app, grow your user base, and earn money. The Firebase Admin PHP SDK enables access to Firebase services from privileged environments (such as servers or cloud) in PHP.

For more information, visit the Firebase Admin PHP SDK documentation.

Installation

The recommended way to install the Firebase Admin SDK is with Composer. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project.

composer require "kreait/firebase-php:^8.0"

Please continue to the Setup section to learn more about connecting your application to Firebase.

If you want to use the SDK within a Framework, please follow the installation instructions here:

Quickstart

use Kreait\Firebase\Factory;

$factory = (new Factory)
    ->withServiceAccount('/path/to/firebase_credentials.json')
    ->withDatabaseUri('https://my-project-default-rtdb.firebaseio.com');

$auth = $factory->createAuth();
$realtimeDatabase = $factory->createDatabase();
$cloudMessaging = $factory->createMessaging();
$remoteConfig = $factory->createRemoteConfig();
$cloudStorage = $factory->createStorage();
$firestore = $factory->createFirestore();

Sponsors

Exitable JetBrains Thanks to Exitable and JetBrains for supporting this project.

License

Firebase Admin PHP SDK is licensed under the MIT License.

Your use of Firebase is governed by the Terms of Service for Firebase Services.

kreait/firebase-php 适用场景与选型建议

kreait/firebase-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43.38M 次下载、GitHub Stars 达 2.44k, 最近一次更新时间为 2015 年 01 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「database」 「api」 「google」 「sdk」 「firebase」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 kreait/firebase-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kreait/firebase-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 kreait/firebase-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 43.38M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2455
  • 点击次数: 8
  • 依赖项目数: 93
  • 推荐数: 2

GitHub 信息

  • Stars: 2437
  • Watchers: 32
  • Forks: 451
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-09