2017 © Pedro Peláez
 

library url-shortener

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

image

madeny/url-shortener

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel 5.5 url shortener

Smattering

URL shortener package with Laravel Package Auto-Discovery., (*1)

Installation and Setup

Require through composer, (*2)

composer require madeny/url-shortener

Or manually edit your composer.json file:, (*3)

"require": {
    "madeny/url-shortener": "1.0"
}

Config: .env to have this for bitly driver:, (*4)

URL_SHORTENER_BITLY_USERNAME=username
URL_SHORTENER_BITLY_PASSWORD=password

for google driver:, (*5)

URL_SHORTENER_GOOGLE_API_KEY=apikey

Usage

Shorten a url

```php
\UrlShortener::shorten('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->shorten('http://google.com');
```

Expand a url

```php
\UrlShortener::expand('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->expand('http://google.com');
```

The Versions

06/04 2018

dev-master

9999999-dev

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel url url shortener shortener url short madeny

22/12 2017

1.1

1.1.0.0

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel url url shortener shortener url short madeny

23/07 2017

1.0

1.0.0.0

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel url url shortener shortener url short madeny