Skip to content

loyalj/getShorty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getShorty

getShorty is a php based url shortener built for my own personal use. It is built using 'flight' and mongoDB. The shortener supports multiple domains with customization allowed at the domain level.

Demo shortener can be found at: http://dblpl.us/

API Access

Links can also be shortened programmatically by sending post commands to the getShorty app vis POST. For Example:

import urllib, urllib2, json
data = {'longURL':'http://www.yahoo.com','api':'1'}
data = urllib.urlencode(data)
resp = urllib2.urlopen('http://dblpl.us/', data)
resp = json.loads(resp.read())
print resp

Installation

  1. Start playing: http://www.youtube.com/watch?v=BI23T9hLInQ
  2. Ensure MongoDB and PHP Mongo Extensions are installed.
  3. Git clone repo to your local directory
  4. Start shortening!

About

php based link short maker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published