PHPackages                             otifsolutions/shorturlapp - 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. otifsolutions/shorturlapp

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

otifsolutions/shorturlapp
=========================

This is a laravel package to convert the url into short code and track the visits to the links.

016PHP

Since Jun 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/otifsolutions/php-url-shortner)[ Packagist](https://packagist.org/packages/otifsolutions/shorturlapp)[ RSS](/packages/otifsolutions-shorturlapp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

php-url-shortner
================

[](#php-url-shortner)

`   PHP 8.1.2 > PHP 8`

### How to use the library

[](#how-to-use-the-library)

Install via the composer

Using the composer(Recommended)

Either run the following command in the root directory of your project:

`composer require otifsolutions/shorturlapp`

Then simply run migrations to run the ShortUrl and Tracker migrations

`php artisan migrate`

### ShortUrl

[](#shorturl)

Namespace for Model `ShortUrl`

```
    use OTIFSolutions\ShortUrlApp\Models\ShortUrl;
```

- Generate a new code against `Url`

    `ShortUrl::set('Url');`

    Type of url is `STRING`
- Get a ShortUrl

    `ShortUrl::get('Url');`

    If Url does not exist the system will return null
- Delete a `Url`

    `ShortUrl::remove('Url');`

    If Url does not exist the system will return null.

### Tracker

[](#tracker)

- Namespace for Model `Tracker`,

    `use OTIFSolutions\ShortUrlApp\Models\Tracker;`
- This model tracks the `url` and stores following details:

    `ip_address`, `full_url`, `operating_system` and `browser`.

### Usage

[](#usage)

- Url will be Tracked and redirected if the user sends `/url` request with generated code.
    - `abc.xyz/url?q=W2tht`.
    - Where 'url' is route, 'q' is a parameter and 'W2tht' is code which user generates.
- In the case of wrong parameter, following error will be returned.
    - `return response()->json(['errors' => ['error' => 'url not exists']]);`

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f9aeabc454ee05b530e6234f1689a89e8f63bc766e647ad78bec54add4215b4?d=identicon)[otifsolutions](/maintainers/otifsolutions)

---

Top Contributors

[![Ishfaq-UET](https://avatars.githubusercontent.com/u/85987492?v=4)](https://github.com/Ishfaq-UET "Ishfaq-UET (3 commits)")

### Embed Badge

![Health badge](/badges/otifsolutions-shorturlapp/health.svg)

```
[![Health](https://phpackages.com/badges/otifsolutions-shorturlapp/health.svg)](https://phpackages.com/packages/otifsolutions-shorturlapp)
```

###  Alternatives

[qruto/laravel-wave

Painless Laravel Broadcasting with SSE.

87048.4k](/packages/qruto-laravel-wave)

PHPackages © 2026

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