PHPackages                             jlaso/alias-generator - 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. jlaso/alias-generator

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

jlaso/alias-generator
=====================

Pseudo random alias generator

215PHPCI failing

Since Nov 14Pushed 7y ago2 watchersCompare

[ Source](https://github.com/jlaso/AliasGenerator)[ Packagist](https://packagist.org/packages/jlaso/alias-generator)[ RSS](/packages/jlaso-alias-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

AliasGenerator
==============

[](#aliasgenerator)

This project provides helpers to generate pseudo-random alias.

[![SensioLabsInsight](https://camo.githubusercontent.com/03f9f5f8c4f3da8223f57f586c4128d8c217c5cf3466cedd83ad4dd1e79039fe/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64376437303434322d623532632d343037322d386530332d3435653661343765316361322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/d7d70442-b52c-4072-8e03-45e6a47e1ca2)

[![Build Status](https://camo.githubusercontent.com/470506910c0c96ae5880c24ea8b1d05cca318c40da317c538e28948bf1dd56ee/68747470733a2f2f7472617669732d63692e6f72672f6a6c61736f2f416c69617347656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jlaso/AliasGenerator)

Installation
============

[](#installation)

Add AliasBundle to your vendor/bundles/ dir
-------------------------------------------

[](#add-aliasbundle-to-your-vendorbundles-dir)

::

```
$ git submodule add git://github.com/jlaso/AliasGenerator.git app/models/alias

```

or use composer

```
composer require jlaso/alias-generator

```

Usage
=====

[](#usage)

For example generating alias for an url based on id

```
    $generator = new AliasGenerator();
    $alias     = $generator->encode($id);

```

And for decode

```
    $generator = new AliasGenerator();
    $id        = $generator->decode($alias);

```

Start docker container to test
==============================

[](#start-docker-container-to-test)

```
    docker-compose up --build

```

once started log in into the container

```
    docker-compose exec php /bin/bash

```

and run the tests

```
    phpunit

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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/6f19216fd9d91bd7cfff14362e2ddb5728bd2d8f50d2e0174626fc61510ed33b?d=identicon)[jlaso](/maintainers/jlaso)

---

Top Contributors

[![jlaso](https://avatars.githubusercontent.com/u/1332197?v=4)](https://github.com/jlaso "jlaso (8 commits)")

### Embed Badge

![Health badge](/badges/jlaso-alias-generator/health.svg)

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

###  Alternatives

[neveldo/text-generator

TextGenerator is a tool that aims to automate the generation of text from data by using a template.

9260.4k](/packages/neveldo-text-generator)[unitpay/shamir

Shamir PHP implementation

242.0k](/packages/unitpay-shamir)

PHPackages © 2026

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