Symfony Bundle for the Firebase Admin SDK

Installs: 35 194

Dependents: 0

Suggesters: 0

Stars: 25

Watchers: 4

Forks: 5

Open Issues: 1


1.3.0 2019-05-26 00:12 UTC


A Symfony Bundle for the Firebase PHP SDK.

Current version Build Status GitHub license Total Downloads Discord


Add the bundle using Composer

composer require kreait/firebase-bundle ^1.0
// Symfony without Flex
// in %kernel.root_dir%/AppKernel.php
$bundles = array(
    // ...
    new Kreait\Firebase\Symfony\Bundle\FirebaseBundle(),

// Symfony with Flex
// in config/bundles.php
return [
    // ...
    Kreait\Firebase\Symfony\Bundle\FirebaseBundle::class => ['all' => true],


# app/config/config.yml (Symfony without Flex)
# config/packages/firebase.yaml (Symfony with Flex)
        # You can access your firebase project with
        # $container->get('kreait_firebase.first')
            # Optional: If set to false, the service and its alias
            # can only be used via dependency injection
            public: true
            # Optional: If set to true, this project is used when
            # using Kreait\Firebase as a type hint for dependency injection
            default: false
            # Optional: Path to the projects Service Account credentials file
            # If omitted, the library will try to discover it.
            credentials: '%kernel.project_dir%/config/service_account_credentials.json'
            # You can find the database URI at 
            database_uri: ''
            # Optional: If set, you can access your project with
            # $container->get('firebase') 
            alias: 'firebase'
        second: # $container->get('kreait_firebase.second')
            database_uri: ''
        third: # $container->get('kreait_firebase.third')


For bug reports and feature requests, use the issue tracker.

For help with and discussion about the PHP SDK and Bundle, join the Gitter Channel dedicated to this library.

For questions about Firebase in general, use Stack Overflow or join the Firebase Slack Community.