Skip to content
This repository was archived by the owner on Jan 19, 2020. It is now read-only.

Latest commit

 

History

History
40 lines (27 loc) · 1.51 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.51 KB

Laravel Url Shortener

Latest Version GitHub license Build Status Quality Score StyleCI Total Downloads

A simple url shortener for Laravel.

Installation

This package can be installed via composer using this command:

composer require dmitrybubyakin/laravel-urls-shortener

You can publish the migration and the config file with:

php artisan vendor:publish

Add the following in the web.php file:

Shortener::routes();

Usage

Shortener::getShortUrl('https://google.com')

// or you can use a helper
shorten('https://google.com')