Download the PHP package redbaron76/googlavel without Composer
On this page you can find all versions of the php package redbaron76/googlavel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download redbaron76/googlavel
More information about redbaron76/googlavel
Files in redbaron76/googlavel
Package googlavel
Short Description a Google API v3 wrapper for Laravel 4.x
License MIT
Homepage https://github.com/redbaron76/googlavel
Informations about the package googlavel
A Google API v3 wrapper for Laravel 4
This package enables a Laravel flavoured way to manage Google services through its API interface (v3)
Installation
Add the required package to your composer.json file
Set minimum-stability to 'dev'
In order to avoid Composer's possible conflicts, just set your composer.json 'minimum-stability' to 'dev'
...then just run composer update
Laravel implementation
This package includes a ServiceProvider that will give access to a helpful Googlavel
facade.
Set the GooglavelServiceProvider
reference in your /app/config/app.php
like this:
Export and edit the configuration file
Before using this package, you will need to activate a profile from Google developer and get your personal code from the Google Developers Console in order to obtain access and use their services through API calls.
Once obtained Client ID
and Client Secret
strings for web application from the Google Developers Console and set a valid Redirect URI
callback, export the package config file:
php artisan config:publish redbaron76/googlavel
...and put them to the oauth2 parameters into the config file
Set also the correct scope
for the services you will use in your application (and remember to activate related APIs inside the Google Developers Console => APIS & AUTH => APIs). Refer to Google API wiki for any help.
Using the Googlavel facade
Once everything set correctly, you'll gain access to the Googlavel
facade in a pure Laravel style.