TrendyLabs / Shortener by vics80

API for Laravel 5 to get short URLs via Googl Shortener
Package Data
Maintainer Username: vics80
Maintainer Contact: (Víctor Garcia)
Package Create Date: 2016-01-20
Package Last Update: 2016-01-20
Language: PHP
License: MIT
Last Refreshed: 2023-12-01 15:08:18
Package Statistics
Total Downloads: 144
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 0
Total Open Issues: 1


API Form Laravel 5 to convert long URLs in Google Shortener format


Install the package through Composer. Edit your project's composer.json file by adding:

"require": {
	"trendylabs/shortener": "dev-master"

Next, run the Composer update command from the Terminal:

composer update

Add the Service Provider. To do this open your config/app.php file.

Add a new line to the service providers array:


And a new line to the aliases array:

'Shortener' => TrendyLabs\Shortener\Facade::class,

Now you need to publish config file:

php artisan vendor:publish

Then you can edit your Google API Keys


Now you're ready to get short URLs via Googl Shortener:

// get short url

// get Google response