PHPackages                             cuneytsenturk/laravel-url-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. cuneytsenturk/laravel-url-shortener

ActiveLibrary

cuneytsenturk/laravel-url-shortener
===================================

Laravel URL Shortener

1.0.3(1y ago)014MITPHPPHP ^8.0

Since Aug 2Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Laravel URL Shortener
=====================

[](#laravel-url-shortener)

Laravel URL Shortener is a simple and useful package that allows you to shorten URLs within the Laravel framework.

Features
--------

[](#features)

- Shorten long URLs into short URLs
- Resolve short URLs back to their original URLs
- User-friendly interface

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

[](#installation)

### Requirements

[](#requirements)

- PHP 8.0 or higher
- Laravel 7.x or higher

### Step 1: Install the Package

[](#step-1-install-the-package)

You can install this package via Composer:

```
composer require cuneytsenturk/laravel-url-shortener
```

### Step 2: Configuration

[](#step-2-configuration)

To configure the package, publish the `config` file using the following command:

```
php artisan vendor:publish --provider="CuneytSenturk\UrlShortener\Provider"
```

Add alias if you want to use the facade.

```
'UrlShortener' => CuneytSenturk\UrlShortener\Facade::class,
```

### Step 3: Database Migrations

[](#step-3-database-migrations)

Run the database migrations to create the necessary tables:

```
php artisan migrate
```

Usage
-----

[](#usage)

You can use the package's functions to perform URL shortening operations.

### Shortening a URL

[](#shortening-a-url)

To shorten a URL:

```
use Cuneytsenturk\UrlShortener\Facade;

$shortUrl = UrlShortener::encode('https://example.com/very/long/url');
echo $shortUrl;
```

### Resolving a Short URL

[](#resolving-a-short-url)

To resolve a short URL back to its original URL:

```
use Cuneytsenturk\UrlShortener\Facade;

$originalUrl = UrlShortener::decode($shortUrl);
echo $originalUrl;
```

Testing
-------

[](#testing)

To run the tests that come with the package:

```
vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

If you would like to contribute, please send a pull request. All contributions are welcome.

License
-------

[](#license)

This project is licensed under the MIT License. For more information, see the [LICENSE](LICENSE) file.

Contact
-------

[](#contact)

For questions or feedback, please contact [Cüneyt Şentürk](https://github.com/cuneytsenturk).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

4

Last Release

646d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10936547?v=4)[Cüneyt Şentürk](/maintainers/cuneytsenturk)[@cuneytsenturk](https://github.com/cuneytsenturk)

---

Top Contributors

[![cuneytsenturk](https://avatars.githubusercontent.com/u/10936547?v=4)](https://github.com/cuneytsenturk "cuneytsenturk (15 commits)")

---

Tags

urllaravelshortenersort url

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cuneytsenturk-laravel-url-shortener/health.svg)

```
[![Health](https://phpackages.com/badges/cuneytsenturk-laravel-url-shortener/health.svg)](https://phpackages.com/packages/cuneytsenturk-laravel-url-shortener)
```

###  Alternatives

[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[waavi/url-shortener

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

64178.1k](/packages/waavi-url-shortener)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.4k](/packages/gallib-laravel-short-url)[mbarwick83/shorty

Google Url Shortener API Package for Laravel 5.1

31204.9k](/packages/mbarwick83-shorty)[osiemsiedem/laravel-autolink

A Laravel package for converting URLs in a given string of text into clickable links.

13126.3k](/packages/osiemsiedem-laravel-autolink)

PHPackages © 2026

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