PHP Package: kreait/firebase-php

PHP library for Firebase integration providing seamless functionality with real-time database, cloud functions, and authentication services.

Current Version: 7.22.0
Last Updated: 2025-09-20
PHP Requirement: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
Dependencies:
firebase/php-jwt
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The firebase-php library offers comprehensive capabilities for integrating PHP applications with Firebase services, enabling real-time data synchronization, serverless cloud functions, and secure user authentication. With extensive documentation and support, this library simplifies the process of building powerful web and mobile applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 7.22.0

Download Download v7.22.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/kreait/firebase-php/7.22.0/loader.php';
require_once 'libs/firebase/php-jwt/6.11.1/loader.php';

use Kreait\Firebase\Database\Database;
use Kreait\Firebase\Messaging\Messaging;

$obj = new Database();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.