Skip to content

Elephurl/back-end

Repository files navigation

elephurl backend

URL shortener API built with PHP 8.2, Redis, and MySQL.

Screenshot

Features

  • Shorten URLs with random or custom codes
  • Click tracking and basic analytics
  • Rate limiting per IP
  • Bot detection
  • URL safety validation

Setup

docker compose up -d

Runs on http://localhost:8080

Tests

docker compose exec php composer test

Linting

docker compose exec php composer lint

Seed Sample Data

docker compose exec php composer db:seed

Populates the database with 100 sample URLs and click data.

Releases

No releases published

Packages

No packages published