Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/codeterrayt/linkshortner

Link Shortener is a swift and user-friendly PHP-based tool designed for hassle-free URL shortening. With no login or registration requirements, users can swiftly input their URLs and obtain concise, shareable links instantly.
https://github.com/codeterrayt/linkshortner

dockerfile link-shortener no-login open-source opensource php php8 short-url shortener url-shortener web-application web-development web-tool

Last synced: 3 days ago
JSON representation

Link Shortener is a swift and user-friendly PHP-based tool designed for hassle-free URL shortening. With no login or registration requirements, users can swiftly input their URLs and obtain concise, shareable links instantly.

Awesome Lists containing this project

README

        

# 🚀 Link Shortener

A fast and straightforward PHP-based Link Shortener. No login or registration required. Just input the URL, and get a short URL instantly!

## Setup

### Prerequisites

- PHP installed on your server.
- MySQL database (e.g., using MySQL or MariaDB).
- Git for cloning the repository.

### Steps

1. **Clone the GitHub Repository:**

```bash
git clone https://github.com/codeterrayt/LinkShortner.git
cd LinkShortner
```

2. **Setup the Database:**

- Create a database named `link_shortner_db`.

- Import the SQL file `link_shortner_table.sql` into your database.

```bash
mysql -u your_username -p link_shortner_db < link_shortner_table.sql
```

3. **Configure Web Server:**

- Make sure your web server is configured to serve the files in the repository.

4. **Run the Application:**

- Open your browser and navigate to the application.

## Usage

1. **Shorten a URL:**

- Visit the application and input the URL you want to shorten.

- Get the short URL instantly!

## File Structure

- `index.php`: Main application file.
- `link_shortner_table.sql`: SQL file for database setup.

## Docker

1. **Docker Compose Up**
```
docker-compose up -d
```

2. **Visit**
```bash
open localhost in browser
```

3. **PHPMYADMIN**
```bash
open localhost:8080
```

## Notes

- 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! 🔗