2017 © Pedro Peláez
 

library fb

Firebase REST API easy wrapper for Laravel

image

ucha19871/fb

Firebase REST API easy wrapper for Laravel

  • Friday, June 2, 2017
  • by ucha19871
  • Repository
  • 3 Watchers
  • 3 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

Firebase easy REST API wrapper for Laravel

Latest Stable Version Total Downloads License, (*1)

Installation

composer require ucha19871/fb

After installing composer package, add the ServiceProvider to the providers array in config/app.php, (*2)

Ucha19871\FB\FBServiceProvider::class,

Add this to your aliases for shorter code:, (*3)

'FB' => Ucha19871\FB\Facades\FBFacades::class,

Insert the config settings in config/services.php like this:, (*4)

    'firebase' => [
        'database_url' => 'https://PROJECT.firebaseio.com',
        'secret' => 'KB2xZjJgAvmPROJECT8ykNrT6f2emuuaxJTr9',
    ]

You can get Firebase secret token like so: - click on the gear icon in you Firebase Console - Click Project settings - Click on the Service Account tab - Click on the Database Secrets link in the inner left-nav - Hover over the non-displayed secret and click Show, (*5)

Usage

$data = ['key' => 'data' , 'key1' => 'data1']
FB::set('/test/',$data); 

FB::get('/test/',['print'=> 'pretty']);

FB::push('/test/',$data); 

FB::update('/test/',['key1' => 'Updating data by key']); 

FB::delete('/test/'); 

For more options see firebase REST documentation, (*6)

The Versions

02/06 2017

dev-master

9999999-dev

Firebase REST API easy wrapper for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ucha19871

laravel api framework rest wrapper firebase

31/05 2017

1.0.7

1.0.7.0

Firebase REST API easy wrapper for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ucha19871

laravel api framework rest wrapper firebase