Projectslaravel-shortify

Laravel Shortify

Package

URL shortening with visit tracking for Laravel.

Upgrade Guide

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

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.