Introduction
bradietilley/laravel-shortify is a small Laravel package for creating short URLs
and redirecting visitors back to the original destination.
It ships with:
- Unique short codes and configurable routing (
/s/{code}by default) - Optional expiry
- Visit tracking (IP, user agent, authenticated user)
- Ownership via
user_id - Soft deletes
- Queued domain events
- Swappable contracts for code generation, visit recording, and redirects
Design goals
- Focused. Shorten, redirect, track — nothing else.
- Extensible. Bind your own
CodeGenerator,VisitRecorder, orRedirectsShortUrls. - Familiar. Eloquent models, config publish, Spatie package tools.