PHPackages                             andrey-helldar/short-url - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andrey-helldar/short-url

Abandoned → [ashallendesign/short-url](/?search=ashallendesign%2Fshort-url)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

andrey-helldar/short-url
========================

A simple short URL generator for Laravel Framework.

v2.2.0(5y ago)102.0k1MITPHPPHP ^7.2.5|^8.0

Since Jul 22Pushed 4y agoCompare

[ Source](https://github.com/andrey-helldar/short-url)[ Packagist](https://packagist.org/packages/andrey-helldar/short-url)[ Fund](https://money.yandex.ru/to/410012115955701)[ Fund](https://paypal.me/helldar)[ RSS](/packages/andrey-helldar-short-url/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (10)Dependencies (9)Versions (19)Used By (0)

Short URL
=========

[](#short-url)

A simple short URL generator for Laravel Framework.

[![StyleCI Status](https://camo.githubusercontent.com/8036b2d80c4d414c1cf8b1e6a740bc50384458712e2bc89d5c2a4cb8ce3ef335/68747470733a2f2f7374796c6563692e696f2f7265706f732f3139373738373434392f736869656c64)](https://github.styleci.io/repos/197787449)[![Github Workflow Status](https://camo.githubusercontent.com/5cf30c4e045840b4dfd1eaadd76b29b70e10c25173e5833a7320ceb498f45b25/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616e647265792d68656c6c6461722f73686f72742d75726c2f706870756e69743f7374796c653d666c61742d737175617265)](https://github.com/andrey-helldar/short-url/actions)[![Coverage Status](https://camo.githubusercontent.com/a50a20557939a84efceded01a5a52d54a765fc5af274ff57156032d40f2eea51/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f616e647265792d68656c6c6461722f73686f72742d75726c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/andrey-helldar/short-url)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d648f37ee61b79b2304362e651d9b5bd260575df9c683770084332b4c913b170/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616e647265792d68656c6c6461722f73686f72742d75726c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/andrey-helldar/short-url)[![For Laravel](https://camo.githubusercontent.com/f56fc6470fafc90f71c839bbdb1092cc6ac862c7d218f54d3ad60c96e1db734f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e352b253230253743253230362e78253230253743253230372e78253230253743253230382e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/short-url)

[![Stable Version](https://camo.githubusercontent.com/2468a48dab94168acc0f4a9c31089b5a7379599845f17535819f56330a5addb8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616e647265792d68656c6c6461722f73686f72742d75726c3f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/short-url)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/short-url)[![Total Downloads](https://camo.githubusercontent.com/06fb48b30b2ae8f80c8c40d57f4ccbff19c7b1bc6686e03639a3897d36cb88d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265792d68656c6c6461722f73686f72742d75726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andrey-helldar/short-url)[![License](https://camo.githubusercontent.com/5e03a6e5aa67bb2ce143dfb6fde0e82e7ba18a9d7bcb32b0486b47fd0c75de37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616e647265792d68656c6c6461722f73686f72742d75726c2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

> This package is **abandoned** and no longer maintained. The author suggests using the [`ashallendesign/short-url`](https://github.com/ash-jc-allen/short-url) package instead.

Installation
------------

[](#installation)

To get the latest version of Laravel Short URL, simply require the project using [composer](https://getcomposer.org):

```
composer require andrey-helldar/short-url

```

Instead, you may of course manually update your require block and run `composer update` if you so choose:

```
{
    "require": {
        "andrey-helldar/short-url": "^2.0"
    }
}
```

If you don't use auto-discovery, add the `ServiceProvider` to the providers array in `config/app.php`:

```
Helldar\ShortUrl\ServiceProvider::class;
```

You can also publish the config file to change implementations (ie. interface to specific class):

```
php artisan vendor:publish --provider="Helldar\ShortUrl\ServiceProvider"

```

Now you can use a `Helldar\ShortUrl\Facades\ShortUrl` facade.

Using
-----

[](#using)

### Identifiers

[](#identifiers)

When creating records, there are two ways to create unique identifiers: The first one is by the record identifier in the database with its conversion into a letter index:

idkeyurloutput url1b2c3d............100dw200hs............1000bmm5000hki............The second is unique identifier based on the current time in microseconds:

idkeyurloutput url15d35b1610705f67924510025d35b1727eb3315625730035d35c3193aaf8239852915............1005d35c3195eaaa4266356692005d35c3199d7f7453462663............10005d35c31a4439856865617150005d35c31aca1c1975257906............### set()

[](#set)

To create a record, use the method `set()`:

```
use \Helldar\ShortUrl\Facades\ShortUrl;

$item = ShortUrl::set('https://example.com');
// returned instance of `Helldar\ShortUrl\Models\Short` eloquent model.
```

### get()

[](#get)

To get record, use the method `get()`:

```
use \Helldar\ShortUrl\Facades\ShortUrl;

$url = ShortUrl::get('foo');
// returned URL string.
// For example, 'http://.com/go/qdr'.
```

### routing

[](#routing)

To create a route you can use the following code:

```
use \Helldar\ShortUrl\Facades\ShortUrl;

$item = ShortUrl::set('https://example.com');

return route('short_url', ['key' => $item->key]);
```

or

```
use \Helldar\ShortUrl\Facades\ShortUrl;

$url = ShortUrl::get('foo');

return redirect()->away($url);
```

You can also [change the name](src/config/settings.php) of the route in the package settings.

### Blade templates

[](#blade-templates)

You can also call the facade from the template engine:

```
open link

{{-- open link --}}
```

or

```
open link

{{-- open link --}}
```

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

For Enterprise
--------------

[](#for-enterprise)

Available as part of the Tidelift Subscription.

The maintainers of `andrey-helldar/short-url` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more](https://tidelift.com/subscription/pkg/packagist-andrey-helldar-short-url?utm_source=packagist-andrey-helldar-short-url&utm_medium=referral&utm_campaign=enterprise&utm_term=repo).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~35 days

Recently: every ~20 days

Total

18

Last Release

1874d ago

Major Versions

v1.5.0 → v2.0.02020-12-29

PHP version history (3 changes)v1.0.0PHP ^7.1.3

v1.5.0PHP ^7.1.3|^8.0

v2.0.0PHP ^7.2.5|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b77790e612f1c9beed1e1533e36eba4954fbd6da2a5c9f71e845cd0f5465f0ad?d=identicon)[Helldar](/maintainers/Helldar)

---

Top Contributors

[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (1 commits)")

---

Tags

urllaravelgeneratorSimpleshort urlseoshort

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/andrey-helldar-short-url/health.svg)

```
[![Health](https://phpackages.com/badges/andrey-helldar-short-url/health.svg)](https://phpackages.com/packages/andrey-helldar-short-url)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[wearepixel/laravel-cart

A cart implementation for Laravel

1310.5k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
