Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Shorty Laravel Package

rezzza/shorty

Shorty is a PHP URL shortener library that creates compact links, stores short codes, and resolves redirects. It provides a straightforward API for adding link shortening and management to your applications.

Deep Wiki
Context7

rezzza/shorty is a lightweight URL shortening package for PHP and Laravel applications. It provides a clean, expressive API for turning long URLs into compact short links and resolving those links back to their original destinations, keeping shortening logic out of your application code.

  • Simple create-and-resolve URL API
  • Laravel service provider and facade integration
  • Configurable short-link generation options
  • Composer-installable and lightweight
  • Suitable for sharing and redirect workflows
Frequently asked questions about Shorty
Is rezzza/shorty a Laravel package?
No. It is a standalone PHP URL-shortening library with no ServiceProvider, facade, publishable config, or Eloquent integration. Its ecosystem was Symfony-oriented, so in a Laravel codebase it lands as an unmanaged dependency you have to wrap yourself.
How do I install rezzza/shorty in a Laravel application?
You would run composer require rezzza/shorty, but expect dependency resolution conflicts on a modern stack. Even if it installs, you still need to write a service provider, config file, migrations, and a repository adapter to make it usable in Laravel. Treat a successful install as an unknown until you spike it against your actual composer.json.
Which PHP and Laravel versions does rezzza/shorty support?
Its last release was December 2015, which places its composer constraints in the PHP 5.6 to 7.x and Symfony 2.x era. Assume a practical ceiling around PHP 7.x and Laravel 5.x until proven otherwise. Do not plan an upgrade path that assumes this library will survive a framework bump.
Does rezzza/shorty work with PHP 8.1 and Laravel 10, 11, or 12?
Almost certainly not without a fork. Expect hard conflicts on php, symfony/*, doctrine/dbal, and possibly guzzlehttp/guzzle, plus PHP 8 syntax errors in 2015-era code. The only reliable way to know is a same-day install spike on your target stack, and the default assumption should be that it fails.
How does rezzza/shorty store shortened URLs?
Persistence is most likely Doctrine/DBAL-based rather than Eloquent, consistent with Rezzza's Symfony-focused ecosystem. To use it in Laravel you would need to replace that layer with an Eloquent-backed repository and add your own migrations for the link table. That adapter work is the bulk of the integration, not a minor detail.
Is rezzza/shorty still maintained?
No. The last release was in December 2015, the project has roughly twelve stars, and there is no active upstream maintainer. That means no PHP 8 compatibility patches, no security advisories, no CVE tracking, and nobody to ask when behavior is undocumented. Adopting it puts an unmaintained transitive dependency into your supply chain.
What are the production risks of using rezzza/shorty?
The dominant risk is abandonment, not code quality. You get no security response process, no patches for new PHP versions, and a standing audit and procurement finding for shipping stale dependencies. If you adopt it, any future framework upgrade becomes blocked on you patching the library yourself.
What are good alternatives to rezzza/shorty for URL shortening in Laravel?
You can self-host a dedicated service like Shlink or Kutt, or use a hosted option like Bitly if you do not need to own the shortener. For an in-app solution, pair a small encoding library such as hashids with your own Eloquent model and redirect route. All of these avoid inheriting a decade-old dependency tree.
Can I just build short URL generation myself instead of using this package?
Yes, and it is often the lower-risk path. The genuinely valuable logic here is short-code generation and collision handling, which is likely a few hundred lines: bijective base62 encoding, collision retry, and redirect resolution. Reimplementing that in your own Laravel package takes roughly a sprint and gives you full test coverage from day one.
Should I fork rezzza/shorty or reimplement it?
Reimplementing is usually the better call. Forking means bumping composer constraints, converting to PSR-4 with PHP 8 types, swapping the HTTP client, rewriting persistence for Eloquent, and adding tests, after which you own unfamiliar 2015 code indefinitely. Since the domain is small and well understood, use the original as a design reference and build a Laravel-native version you control.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console