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.
- Host: GitHub
- URL: https://github.com/robsd/php-json-url-shortener
- Owner: robsd
- License: mit
- Created: 2021-12-17T01:15:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T22:04:36.000Z (over 2 years ago)
- Last Synced: 2025-06-21T05:37:33.321Z (about 1 year ago)
- Topics: easy, easy-to-use, file, flat, flat-file, json, link, link-shortener, links, php, script, shortener, simple, url, url-shortener
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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...
[](https://ko-fi.com/F1F34TIDQ)