Developed with love by KnpLabs Hire us for your project!
43

firebase-bundle

by kreait

A Symfony Bundle for the Firebase PHP Admin SDK

Firebase SDK Bundle

A Symfony Bundle for the Firebase PHP SDK.

Current version
Build Status
GitHub license
Total Downloads
Gitter


Installation

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],
];

Configuration

# app/config/config.yml (Symfony without Flex)
# config/packages/firebase.yaml (Symfony with Flex)
kreait_firebase:
    projects:
        # You can access your firebase project with
        # $container->get('kreait_firebase.first')
        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 
            # https://console.firebase.google.com/project/first/database/data
            database_uri: 'https://my-project.firebaseio.com'
            # Optional: If set, you can access your project with
            # $container->get('firebase') 
            alias: 'firebase'
        second: # $container->get('kreait_firebase.second')
            database_uri: 'https://second.firebaseio.com'
        third: # $container->get('kreait_firebase.third')
            ...

Support

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.

The MIT License (MIT)

Copyright (c) 2016 Jérôme Gamez, https://github.com/jeromegamez <jerome@gamez.name>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
  • Release 1.2.0
    By jeromegamez, 5 months ago
  • Fix deprecated root node
    By jeromegamez, 5 months ago
  • Update readme and GitHub issue template
    By jeromegamez, 11 months ago
  • Release 1.1.1
    By jeromegamez, 1 year ago
  • Use the configured factory instance
    By jeromegamez, 1 year ago
  • Release 1.1.0
    By jeromegamez, 1 year ago
  • Specify credentials for all definitions
    By jeromegamez, 1 year ago
  • Add badges
    By jeromegamez, 1 year ago
  • Allow defining a default project
    By jeromegamez, 1 year ago
  • Release 1.0.0
    By jeromegamez, 1 year ago
  • Rewrite with support for the latest PHP SDK
    By jeromegamez, 1 year ago
  • Remove branch alias configuration
    By jeromegamez, 1 year ago
  • Fix formatting
    By jeromegamez, 1 year ago
  • Remove deprecation notice
    By jeromegamez, 1 year ago
  • Update link to the 1.x symfony integration doc
    By jeromegamez, 2 years ago
  • Abandon bundle and refer to library
    By jeromegamez, 3 years ago
  • Remove PHP 5.4 support
    By jeromegamez, 3 years ago
  • Release 0.5
    By jeromegamez, 3 years ago
  • Update changelog
    By jeromegamez, 3 years ago
  • Remove doc for obsolete authentication step
    By jeromegamez, 3 years ago
  • Update dependencies
    By jeromegamez, 3 years ago
  • Use original build status badge from travis
    By jeromegamez, 4 years ago
  • Update build status badge
    By jeromegamez, 4 years ago
  • Remove scrutinizer.yml
    By jeromegamez, 4 years ago
  • Add composer update command
    By jeromegamez, 4 years ago
  • Add Travis CI configuration
    By jeromegamez, 4 years ago
  • Release 0.4
    By jeromegamez, 4 years ago
  • Add authentication documentation
    By jeromegamez, 4 years ago
  • Update firebase library to current version
    By jeromegamez, 4 years ago
  • Add build directory to .gitignore
    By jeromegamez, 4 years ago