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

ActiveLibrary

cogpowered/shortener
====================

Encodes integers as short string and back. Useful in URL shorteners.

0.0.2(13y ago)42391MITPHPPHP &gt;=5.3.0

Since Mar 14Pushed 13y ago3 watchersCompare

[ Source](https://github.com/cogpowered/Shortener)[ Packagist](https://packagist.org/packages/cogpowered/shortener)[ Docs](https://github.com/cogpowered/Shortener)[ RSS](/packages/cogpowered-shortener/feed)WikiDiscussions master Synced 1mo ago

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

Shortener
=========

[](#shortener)

Currently this is a port of [jakoubek/php-recordlocator](https://github.com/jakoubek/php-recordlocator).

It has been tidied up, namespaced and proper [Composer](http://getcomposer.org/) support added.

[![Build Status](https://camo.githubusercontent.com/c15791136d599825a18cb966fe73ad2bc9298acc84eb9587a5559cde885709ab/68747470733a2f2f7472617669732d63692e6f72672f636f67706f77657265642f53686f7274656e65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cogpowered/Shortener)

Usage
-----

[](#usage)

```
$shortener = new cogpowered\Shortener\Shortener;
echo $shortener->encode(81906);
echo $shortener->decode('4IZL');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

4805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07866bb8494b78f654ccdb78c6322a5651cbb8d2a85eaa210db90d833ecd0927?d=identicon)[rcrowe](/maintainers/rcrowe)

---

Tags

urlconvertencodingintegershortenernumberid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yourls/yourls

Your Own URL Shortener

11.9k27.7k1](/packages/yourls-yourls)[misd/linkify

Converts URLs and email addresses in text into HTML links

1122.9M10](/packages/misd-linkify)[cybercog/laravel-optimus

An Optimus bridge for Laravel. Id obfuscation based on Knuth's multiplicative hashing method.

192564.1k](/packages/cybercog-laravel-optimus)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

961.0M2](/packages/nzo-url-encryptor-bundle)[mremi/url-shortener

A PHP5/PHP7/PHP8 library using API to shorten/expand URL

79719.0k6](/packages/mremi-url-shortener)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

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

PHPackages © 2026

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