Skip to content

Another URL shortener written in PHP which uses JSON as a URL storage method.

License

Notifications You must be signed in to change notification settings

robsd/php-json-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-json-url-shortener 🔗

Another URL shortener written in PHP which uses JSON as a URL storage method.

Getting setup

  1. Download and extract this repo.
  2. Edit the urls.json file in between the opening { and closing } curly braces with the URLs you wish to shorten in the format "example": "https://example.com" (one per line with every line having a comma , at the end except for the last) where example is the end part e g. yourdomain.com/example and https://example.com is the link you wish to shorten.
  3. Upload everything to your PHP-enabled web server.

Need a hint?

I have created 2 example shortened URLs in urls.json based on the above setup guide.

Support my work

If you like this repo or used any of the code, please star ⭐ it and consider supporting me below...

ko-fi