Skip to content

Laravel ServiceProvider for eelkevdbos/firebase-php Library

License

Notifications You must be signed in to change notification settings

elsangedy/laravel-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Firebase

Laravel ServiceProvider for eelkevdbos/firebase-php Library

Instalation

Laravel 5

Composer is the recommended way to install this package. Run this command:

composer require elsangedy/laravel-firebase

Once composer has installed the package add this line of code to the providers array located in your config/app.php file:

LaravelFirebase\LaravelFirebaseServiceProvider::class

To publish this package configuration run:

php artisan vendor:publish

Edit the config/firebase.php file, enter your url and your secret.

Basic usage

<?php

namespace App\Http\Controllers;

use Firebase\Firebase;

class FirebaseController extends Controller
{
  public function index(Firebase $firebase)
  {
    $endpoint = '/exaple';

    $data = $firebase->get($endpoint);

    return $data;
  }
}

About

Laravel ServiceProvider for eelkevdbos/firebase-php Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages