dev-master
9999999-devAPI for Laravel 5 to get short URLs via Googl Shortener
MIT
The Requires
by VĂctor Garcia
laravel googl shortener
API for Laravel 5 to get short URLs via Googl Shortener
API Form Laravel 5 to convert long URLs in Google Shortener format, (*1)
Install the package through Composer. Edit your project's composer.json
file by adding:, (*2)
"require": { "trendylabs/shortener": "dev-master" }
Next, run the Composer update command from the Terminal:, (*3)
composer update
Add the Service Provider. To do this open your config/app.php
file., (*4)
Add a new line to the service providers
array:, (*5)
TrendyLabs\Shortener\ShortenerServiceProvider::class,
And a new line to the aliases
array:, (*6)
'Shortener' => TrendyLabs\Shortener\Facade::class,
Now you need to publish config file:, (*7)
php artisan vendor:publish
Then you can edit your Google API Keys, (*8)
Now you're ready to get short URLs via Googl Shortener:, (*9)
// get short url \Shortener::short($url); // get Google response \Shortener::response($url);
API for Laravel 5 to get short URLs via Googl Shortener
MIT
laravel googl shortener