2017 © Pedro PelĂĄez
 

laravel shortener

API for Laravel 5 to get short URLs via Googl Shortener

image

trendylabs/shortener

API for Laravel 5 to get short URLs via Googl Shortener

  • Wednesday, January 20, 2016
  • by vics80
  • Repository
  • 2 Watchers
  • 1 Stars
  • 92 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Shortener

API Form Laravel 5 to convert long URLs in Google Shortener format, (*1)

Installation

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)

Usage

Now you're ready to get short URLs via Googl Shortener:, (*9)

// get short url
\Shortener::short($url);

// get Google response
\Shortener::response($url);

The Versions

20/01 2016

dev-master

9999999-dev

API for Laravel 5 to get short URLs via Googl Shortener

  Sources   Download

MIT

The Requires

 

by VĂ­ctor Garcia

laravel googl shortener