Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 692 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 692 Bytes

Url Shortener Total Downloads

A simple url shortener package for laravel

Install using:

composer require hpez/url-shortener

Then add the Alias in config/app.php:

        'UrlShortener' => \Hpez\UrlShortener\Facades\UrlShortener::class,

And the service provider if not added automatically:

        Hpez\UrlShortener\UrlShortenerServiceProvider::class

And then run the migrations:

php artisan migrate        

Usage:

    $shortenedUrl = UrlShortener::shorten('/test'); // returns '/u/70aa139e2c' e.g.