Abridger is a lightweight URL shortener service, written in PHP.
A URL shortener is a web service that provides abbreviated alternatives for long URLs. It works based on URL redirection. My implementation uses Slim Framework, and Hashids. I'm pretty impressed with both of these frameworks because of their simplicity. The database migration is handled by dbup.
$ git clone https://github.com/amirbehzad/Abridger.php.git
$ cd Abridger.php/
$ make install
$ make migrate
$ make test
$ ABRIDGER=test php -S localhost:8000 -t wwwroot/
Note: The make migrate command depends on dbup, and requires an existing MySQL database, named as test_abridger.
$ heroku apps:create
$ git push heroku master:master
$ heroku config:set ABRIDGER=production
$ heroku apps:rename abridger
$ heroku logs
Make sure you have created cfg/database.production.ini with the required settings.