/simple-url-shortener

Simple URL shortener service with PHP & SQLite.

Primary LanguagePHP

Simple URL Shortener Service

This is a simple URL shortener service that uses PHP and SQLite. It provides a way to shorten long URLs into short, memorable links that can be easily shared and remembered.

Getting Started

To use this URL shortener service, you'll need a web server with PHP (>= 7.4) and SQLite installed. Here's how to set it up:

  1. Download the index.php file from this repository and place it on your web server.
  2. Visit the index.php file in your web browser and pass a URL as a parameter in the query string, like this: http://your-domain.com/index.php?url=https://www.example.com/.
  3. The code will return the shortened URL, which you can then use to redirect to the original URL.

Contribution Guide

We welcome contributions to this URL shortener service! Here's how you can help:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes.
  4. Test your changes.
  5. Commit your changes with a descriptive commit message.
  6. Push your changes to your fork.
  7. Submit a pull request.

Before submitting a pull request, please make sure that your changes are well-tested and meet the following requirements:

  • Your code should follow the existing coding style.
  • Your changes should not break existing functionality.
  • Your changes should be accompanied by appropriate documentation and comments.

Thank you for your contributions!