PHPackages                             mergit/yii2-shorty - 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. mergit/yii2-shorty

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

mergit/yii2-shorty
==================

Yii2 URL Shortener

016PHP

Since Feb 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mergit/yii2-shorty)[ Packagist](https://packagist.org/packages/mergit/yii2-shorty)[ RSS](/packages/mergit-yii2-shorty/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 URL Shortener
==================

[](#yii2-url-shortener)

Yii2 URL Shortener

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mergit/yii2-shorty "dev-master"

```

or add

```
"mergit/yii2-shorty": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
$config = [
    'defaultRoute' => 'shorty/default/index',

	'components' => [
		'geoip' => ['class' => 'lysenkobv\GeoIP\GeoIP'],
	],

	'modules' => [

		'shorty' => [
		    'class' => 'mergit\shorty\Module',
		],

	],
];
```

Create DB
---------

[](#create-db)

```
yii migrate --migrationPath=@vendor/mergit/yii2-shorty/migrations

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/837e3ea65d2416f0da6d22d70662349c71c62d60348bb357c490406efa7237b3?d=identicon)[mer](/maintainers/mer)

---

Top Contributors

[![mergit](https://avatars.githubusercontent.com/u/15109285?v=4)](https://github.com/mergit "mergit (9 commits)")

### Embed Badge

![Health badge](/badges/mergit-yii2-shorty/health.svg)

```
[![Health](https://phpackages.com/badges/mergit-yii2-shorty/health.svg)](https://phpackages.com/packages/mergit-yii2-shorty)
```

###  Alternatives

[odan/tsid

A library for generating Time Sortable Identifiers (TSID).

25229.8k](/packages/odan-tsid)[yooper/stop-words

Stop words

14399.5k4](/packages/yooper-stop-words)

PHPackages © 2026

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