Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 2.1 KB

index.rst

File metadata and controls

69 lines (56 loc) · 2.1 KB

Firebase Admin SDK for PHP

Interact with Google Firebase from your PHP application.

License Stargazers Total downloads Sponsoring

Note

If you are interested in using the PHP Admin SDK as a client for end-user access (for example, in a web application), as opposed to admin access from a privileged environment (like a server), you should instead follow the instructions for setting up the client JavaScript SDK.

The source code can be found at https://github.com/kreait/firebase-php/ .

Quick Start

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();

User Guide

.. toctree::
    :maxdepth: 3

    overview
    setup
    cloud-messaging
    cloud-firestore
    cloud-storage
    realtime-database
    authentication
    user-management
    dynamic-links
    remote-config
    app-check
    framework-integrations
    testing
    troubleshooting