Package Data | |
---|---|
Maintainer Username: | munir7 |
Maintainer Contact: | elsangedy@gmail.com (Munir Ahmed Elsangedy) |
Package Create Date: | 2016-06-09 |
Package Last Update: | 2016-06-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-26 15:20:49 |
Package Statistics | |
---|---|
Total Downloads: | 708 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 6 |
Total Watchers: | 4 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Laravel ServiceProvider for eelkevdbos/firebase-php Library
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
.
<?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;
}
}