An open API service indexing awesome lists of open source software.

https://github.com/robsd/php-json-url-shortener

Another URL shortener written in PHP which uses JSON as a URL storage method.
https://github.com/robsd/php-json-url-shortener

easy easy-to-use file flat flat-file json link link-shortener links php script shortener simple url url-shortener

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# php-json-url-shortener 🔗

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

## Getting setup

1. [Download](https://github.com/robsd/php-json-url-shortener/archive/refs/heads/main.zip) and extract this repo.
3. 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.
4. 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](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F34TIDQ)