Shortener is a small app written with Laravel which provides a URL shortening service (similar to bit.ly, etc).
- PHP >= 5.4
- Mcrypt PHP Extension
- OpenSSL PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- ImageMagick lib / PHP Extension
- Composer
- Clone repository into web accessible directory, with
public
directory as document root - Run
composer install
in root app directory - Copy
.env.example
to.env
, replace database credentials - Run
php artisan migrate
to set up database schema - Edit
config/hashids.php
with desired hashing settings - Optionally configure pretty URLs
Optionally, you can run Laravel Homestead which provides all required dependencies, and clone Shortener as an app inside Homestead.
Feel free to open any pull requests with any improvements.
All URL shortening code under the namespace Shortener
and located in app/Shortener
Shortener is open-sourced software licensed under the MIT license