Skip to content

hpez/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.