PHPackages                             saberqadimi/link-shortener - 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. saberqadimi/link-shortener

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

saberqadimi/link-shortener
==========================

A Laravel package for shortening links.

v1.0.1(1y ago)81[1 issues](https://github.com/Saberqadimi/link-shortener/issues)MITPHPPHP ^8.2

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Saberqadimi/link-shortener)[ Packagist](https://packagist.org/packages/saberqadimi/link-shortener)[ RSS](/packages/saberqadimi-link-shortener/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Laravel Link Shortener
======================

[](#laravel-link-shortener)

[![img.png](img.png)](img.png)

[![Latest Stable Version](https://camo.githubusercontent.com/8b134f4ede1b025566b95244ab2fe414f5fd4b56d4e1c8fc055b1fdd05067578/687474703a2f2f706f7365722e707567782e6f72672f7361626572716164696d692f6c696e6b2d73686f7274656e65722f76)](https://packagist.org/packages/saberqadimi/link-shortener)[![Total Downloads](https://camo.githubusercontent.com/2b4e9c1190b8af8d004f1d83e863f57231dbdf12947e1ccb60aa546a2ab59112/687474703a2f2f706f7365722e707567782e6f72672f7361626572716164696d692f6c696e6b2d73686f7274656e65722f646f776e6c6f616473)](https://packagist.org/packages/saberqadimi/link-shortener)[![Latest Unstable Version](https://camo.githubusercontent.com/c7b685816cda2444e70460cac878a4ba49c8f27319145379b4046a45f7fdee3e/687474703a2f2f706f7365722e707567782e6f72672f7361626572716164696d692f6c696e6b2d73686f7274656e65722f762f756e737461626c65)](https://packagist.org/packages/saberqadimi/link-shortener)[![License](https://camo.githubusercontent.com/9eaffb4a744aa0b6959e8ea744e65eaa036bc3db67d16f9b734af092d81787a3/687474703a2f2f706f7365722e707567782e6f72672f7361626572716164696d692f6c696e6b2d73686f7274656e65722f6c6963656e7365)](https://packagist.org/packages/saberqadimi/link-shortener)[![PHP Version Require](https://camo.githubusercontent.com/43526d60c93acf8851bbbb370254e2afa118d20562ac074665229eedbaff766a/687474703a2f2f706f7365722e707567782e6f72672f7361626572716164696d692f6c696e6b2d73686f7274656e65722f726571756972652f706870)](https://packagist.org/packages/saberqadimi/link-shortener)

A Laravel package for shortening URLs with analytics support. 🚀

Demo
----

[](#demo)

    Screencast.from.2025-03-11.10-41-03.webm    📥 Installation
--------------

[](#-installation)

You can install this package via Composer:

```
composer require saberqadimi/link-shortener
```

⚙️ Configuration
----------------

[](#️-configuration)

### 1️⃣ Publish the Service Provider

[](#1️⃣-publish-the-service-provider)

After installation, publish the package's service provider:

```
php artisan vendor:publish --provider="Laravel\LinkShortener\LinkShortenerServiceProvider"
```

### 2️⃣ Publish Assets (CSS &amp; JS)

[](#2️⃣-publish-assets-css--js)

To use the front-end assets, run:

```
php artisan vendor:publish --tag=laravel/link-shortener
```

### 3️⃣ Run Migrations

[](#3️⃣-run-migrations)

The package comes with necessary database migrations. Run:

```
php artisan migrate
```

🚀 Usage
-------

[](#-usage)

Once installed and configured, you can access the link shortener page at:

```
https://your-domain.com/link/shorten

```

⚠️ **Note:** The user must be logged in to access this page.

📄 License
---------

[](#-license)

This package is open-source and available under the MIT License.

---

### **💡 Quick Commands:**

[](#-quick-commands)

1️⃣ **Install Package** → `composer require saberqadimi/link-shortener`
2️⃣ **Publish Service Provider** → `php artisan vendor:publish --provider="Laravel\LinkShortener\LinkShortenerServiceProvider"`
3️⃣ **Publish Assets** → `php artisan vendor:publish --tag=laravel/link-shortener`
4️⃣ **Run Migrations** → `php artisan migrate`
5️⃣ **Access Shortener Page** → `/link/shorten` (User must be logged in)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance42

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

428d ago

### Community

Maintainers

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

---

Top Contributors

[![Saberqadimi](https://avatars.githubusercontent.com/u/83162836?v=4)](https://github.com/Saberqadimi "Saberqadimi (2 commits)")

---

Tags

laravelshort urlurl shortenerlink-shortenerphp-packageshorten link

### Embed Badge

![Health badge](/badges/saberqadimi-link-shortener/health.svg)

```
[![Health](https://phpackages.com/badges/saberqadimi-link-shortener/health.svg)](https://phpackages.com/packages/saberqadimi-link-shortener)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[vinelab/url-shortener

URL shortening the easy way.

6217.2k](/packages/vinelab-url-shortener)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[phpsa/laravel-yourls-plugin

Plugin which integrates Laravel with Yourls (Your Own URL Shortener).

172.9k](/packages/phpsa-laravel-yourls-plugin)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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