Laravel Shortify
URL shortening with visit tracking for Laravel applications.
use BradieTilley\Shortify\Shortify;
$short = Shortify::url('https://example.com/very/long/path');
echo $short->url; // https://your-app.test/s/Ws4BYCVLDDDh
Documentation
- Introduction
- Installation
- Shortening
- Routing
- Models
- Ownership
- Visits
- Events
- Extending
- Configuration
- Compatibility
Requirements
- PHP 8.3+
- Laravel 13+
Quick start
composer require bradietilley/laravel-shortify
php artisan vendor:publish --tag="shortify-config"
php artisan vendor:publish --tag="shortify-migrations"
php artisan migrate
use BradieTilley\Shortify\Shortify;
$short = Shortify::url('https://example.com/invoice/42');
return redirect()->away($short->url);
See Installation and Shortening for the full walkthrough.