url-shortener maintained by waavi
Last update
2019/05/06 14:59
License
Require
- mremi/url-shortener ^2.0
- illuminate/support 5.1.x|5.2.x|5.3.*|5.4.*|5.5.*
- illuminate/config 5.1.x|5.2.x|5.3.*|5.4.*|5.5.*
Last update
2019/05/06 14:59
License
Require
- illuminate/support 5.1.x|5.2.x|5.3.*|5.4.*|5.5.*
- illuminate/config 5.1.x|5.2.x|5.3.*|5.4.*|5.5.*
- mremi/url-shortener ^2.0
Last update
2017/10/06 10:09
License
Require
- illuminate/support 5.1.x|5.2.x|5.3.*|5.4.*|5.5.*
- illuminate/config 5.1.x|5.2.x|5.3.*|5.4.*|5.5.*
- mremi/url-shortener ^2.0
Last update
2017/08/10 15:33
License
Require
- illuminate/support 5.1.x|5.2.x|5.3.*|5.4.*
- illuminate/config 5.1.x|5.2.x|5.3.*|5.4.*
- mremi/url-shortener ^2.0
Last update
2017/02/07 11:19
License
Require
- illuminate/support 5.1.x|5.2.x|5.3.*
- illuminate/config 5.1.x|5.2.x|5.3.*
- mremi/url-shortener ^2.0
Last update
2016/08/11 10:26
License
Require
- illuminate/support 5.1.x|5.2.x|5.3.*
- illuminate/config 5.1.x|5.2.x|5.3.*
- mremi/url-shortener ^1.0
Last update
2016/08/10 12:30
License
Require
- illuminate/support 5.1.x|5.2.x|5.3.*
- illuminate/config 5.1.x|5.2.x|5.3.*
- mremi/url-shortener ^1.0
Last update
2016/06/09 16:16
License
Require
- illuminate/support 5.1.x|5.2.x
- illuminate/config 5.1.x|5.2.x
- mremi/url-shortener ^1.0
Last update
2016/03/16 11:33
License
Require
- illuminate/support 5.1.x|5.2.x
- illuminate/config 5.1.x|5.2.x
- mremi/url-shortener dev-master
Last update
2016/01/02 00:48
License
Require
- illuminate/support 5.1.x
- illuminate/config 5.1.x
- mremi/url-shortener dev-master
comments powered by Disqus
Laravel 5 url shortener
Introduction
URL shortener package that gives a convenient Laravel Facade for mremi/UrlShortener
WAAVI is a web development studio based in Madrid, Spain. You can learn more about us at waavi.com
Laravel compatibility
Laravel | translation |
---|---|
5.1.x | 1.0.x |
5.2.x | 1.0.1 and higher |
5.5.x | 1.0.7 and higher |
Installation and Setup
Require through composer
composer require waavi/url-shortener 1.0.x
Or manually edit your composer.json file:
"require": {
"waavi/url-shortener": "1.0.x"
}
In config/app.php, add the following entry to the end of the providers array:
Waavi\UrlShortener\UrlShortenerServiceProvider::class,
And the following alias:
'UrlShortener' => Waavi\UrlShortener\Facades\UrlShortener::class,
Publish the configuration file, the form view and the language entries:
php artisan vendor:publish --provider="Waavi\UrlShortener\UrlShortenerServiceProvider"
Check the config files for the environment variables you need to set for the selected driver.
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');
```