Skip to content

amirbehzad/Abridger.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abridger.php

Abridger is a lightweight URL shortener service, written in PHP.

Description

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.

Installation, and Local Testing

$ 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.

Deployment on Heroku

$ 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.

About

URL shortener service, written in PHP, based on Slim Framework v3.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published