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
publicdirectory as document root - Run
composer installin root app directory - Copy
.env.exampleto.env, replace database credentials - Run
php artisan migrateto set up database schema - Edit
config/hashids.phpwith 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