A fast and straightforward PHP-based Link Shortener. No login or registration required. Just input the URL, and get a short URL instantly!
- PHP installed on your server.
- MySQL database (e.g., using MySQL or MariaDB).
- Git for cloning the repository.
-
Clone the GitHub Repository:
git clone https://github.com/codeterrayt/LinkShortner.git cd LinkShortner
-
Setup the Database:
-
Create a database named
link_shortner_db
. -
Import the SQL file
link_shortner_table.sql
into your database.mysql -u your_username -p link_shortner_db < link_shortner_table.sql
-
-
Configure Web Server:
- Make sure your web server is configured to serve the files in the repository.
-
Run the Application:
- Open your browser and navigate to the application.
-
Shorten a URL:
-
Visit the application and input the URL you want to shorten.
-
Get the short URL instantly!
-
index.php
: Main application file.link_shortner_table.sql
: SQL file for database setup.
-
Docker Compose Up
docker-compose up -d
-
Visit
open localhost in browser
-
PHPMYADMIN
open localhost:8080
- This Link Shortener is designed for simplicity and speed.
- No login or registration required.
- Ensure proper security measures before deploying in a production environment.
🚀 Happy Link Shortening! 🔗