PHP code example of piotzkhider / firebase-module

1. Go to this page and download the library: Download piotzkhider/firebase-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

piotzkhider / firebase-module example snippets


use Piotzkhider\FirebaseModule\FirebaseModule;
use Ray\Di\AbstractModule;

class AppModule extends AbstractModule
{
    protected function configure()
    {
        $this->install(new FirebaseModule($_ENV['GOOGLE_APPLICATION_CREDENTIALS']));
    }
}