Lightweight, file based, url shortener in PHP with OOP and Bootstrap-UI. No Database needed!
- Create customized shortened URLs like "http://yourdomain.com/link"
- It is more personalized than using any public url-shorteners
- You can make the shortened url self speaking, unlike with the public url shorteners
- Optional password protection
- Click statistics
- easy integration in domains with existing websites
- RESTful API
There is a chrome extension available to directly shorten the current url with just one click. http://surl.bz/chromext
The source is available here: https://github.com/pawy/url_shortener_chrome_extension
There is a windows 8.1 app in the windows store. Directly share any url with the app and create a shortened one. http://surl.bz/msapp
- Copy the files into your root directory
- Congratulations, you're done!
There is a config.php file to which you get redirected after copying the files to your server. Adjust the configuration to your needs and then either delete the config.php file from your server or rename it using the wizard.
It's a RESTful API according to the specifications.
URL: http://yourdomain/surlapi
- /version GET -> returns the version
- /md5/[Value] GET -> returns the encrypted [Value]
- /surl
- /[ShortenedURL]/redirect GET -> redirects to the url
- /[ShortenedURL]/log GET -> click log
- /surl POST -> Create
- url: The url
- auth (optional): If the server requires authentication its the encrypted (md5) password
- surl (optional): If the server allows choosable shorten
- /surl DELETE -> Delete
- surl: The shortened Url
- auth (optional): If the server requires authentication its the encrypted (md5) password
Feel free to change the script to your needs and notify me if you have some improvements!