PHPackages                             lighturl/lighturl - 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. lighturl/lighturl

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

lighturl/lighturl
=================

Open Source Url Shortener

1.0.3(9y ago)040MITPHPPHP &gt;=5.6.4

Since Sep 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lighturl/lighturl)[ Packagist](https://packagist.org/packages/lighturl/lighturl)[ Docs](https://lighturl.in)[ RSS](/packages/lighturl-lighturl/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

lighturl
========

[](#lighturl)

Open Source Url Shortener

[![Build Status](https://camo.githubusercontent.com/4f08f6c3147702d577f6b85d19bfbbd17d182b846b60e63de4755e7645e05724/68747470733a2f2f7472617669732d63692e6f72672f6c6967687475726c2f6c6967687475726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lighturl/lighturl)

### Requirements

[](#requirements)

- PHP 5.6.4+

### Installation

[](#installation)

#### Via Composer Install

[](#via-composer-install)

```
$ composer require lighturl/lighturl
```

#### Database Migration

[](#database-migration)

use [Phinx PHP Database Migrations](https://github.com/robmorgan/phinx)

```
edit phinx.yml
$ phinx migrate -e
```

### Docs

[](#docs)

Coming soon

Quick Start
-----------

[](#quick-start)

```
require 'vendor/autoload.php';
use Illuminate\Database\Capsule\Manager as Capsule;
use LightUrl\LightUrl;
```

```
$capsule = new Capsule;

        $capsule->addConnection([
            'driver'    => 'mysql',
            'host'      => 'localhost',
            'database'  => 'lighturl',
            'username'  => 'root',
            'password'  => '',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
        ]);

        // Make this Capsule instance available globally via static methods... (optional)
        $capsule->setAsGlobal();

// Setup the Eloquent ORM... (optional; unless you've used setEventDispatcher())
        $capsule->bootEloquent();

        $connection=$capsule->getConnection();
```

```
$light = new LightUrl($connection);

if(isset($_GET['shortkey'])){

     $light->redirectTo($_GET['shortkey']);

}else {

$key = $light->lighten($heavyUrl);

echo $key;
}
```

Changelog
---------

[](#changelog)

Details changes for each release are documented in the [release notes](https://github.com/lighturl/lighturl/releases).

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Total

7

Last Release

3555d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

urlcmsshortenerurl shortener

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k2.2M5](/packages/ashallendesign-short-url)[yourls/yourls

Your Own URL Shortener

12.1k27.8k1](/packages/yourls-yourls)[spatie/laravel-settings

Store your application settings

1.5k6.8M139](/packages/spatie-laravel-settings)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[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

16416.8k](/packages/gallib-laravel-short-url)

PHPackages © 2026

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