2017 © Pedro Peláez
 

library laravel-short-url

A Laravel package to shorten urls

image

gallib/laravel-short-url

A Laravel package to shorten urls

  • Monday, June 18, 2018
  • by Gallib
  • Repository
  • 3 Watchers
  • 35 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 10 Versions
  • 164 % Grown

The README.md

Laravel Short URL logo , (*1)

Laravel Short Url Build Status StyleCI

Laravel Short Url is a package allowing you to shorten urls., (*2)

Installation

With composer, (*3)

composer require gallib/laravel-short-url

then run, (*4)

php artisan vendor:publish --provider="Gallib\ShortUrl\ShortUrlServiceProvider"
php artisan migrate

finally, paste ShortUrl::routes(); at the end of routes/web.php, (*5)

Configuration

Laravel Short Url configuration file can be found on config/shorturl.php, (*6)

  • blacklist : Allows to blacklist urls. Keywords can be either an url, a keyword or an extension

Advanced configuration

Instead of adding ShortUrl::routes(); you can call three separates methods: - ShortUrl::createRoutes(); to shorten urls - ShortUrl::manageRoutes(); to manage urls - ShortUrl::redirectRoute(); to redirect to the url, (*7)

this allows you to add middlewares or prefix routes., (*8)

Migration Customization

If you are not going to use Short Url's default migrations, you should call the ShortUrl::ignoreMigrations(); method in the register method of your AppServiceProvider. You may export the default migrations using, (*9)

php artisan vendor:publish --tag=shorturl-migrations

Nice!

Laravel short url is now set up on your homepage., (*10)

Credits

The Versions

23/03 2018

1.3.0

1.3.0.0

A Laravel package to shorten urls

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alain Pellaux

laravel url package shortener

19/03 2018

1.2.0

1.2.0.0

A Laravel package to shorten urls

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alain Pellaux

laravel url package shortener

02/03 2018

1.1.0

1.1.0.0

A Laravel package to shorten urls

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alain Pellaux

laravel url package shortener

02/03 2018

dev-analysis-zOZN4P

dev-analysis-zOZN4P

A Laravel package to shorten urls

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alain Pellaux

laravel url package shortener

23/02 2018

1.0.0

1.0.0.0

A Laravel package to shorten urls

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alain Pellaux

laravel url package shortener