PHPackages                             mhfereydouni/unique-code-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. mhfereydouni/unique-code-generator

Abandoned → [nextapps/unique-codes](/?search=nextapps%2Funique-codes)Library[Utility &amp; Helpers](/categories/utility)

mhfereydouni/unique-code-generator
==================================

This is my package unique-code-generator

1.1.0(3y ago)03[2 PRs](https://github.com/mhfereydouni/unique-code-generator/pulls)MITPHPPHP ^7.4|^8.0

Since Apr 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mhfereydouni/unique-code-generator)[ Packagist](https://packagist.org/packages/mhfereydouni/unique-code-generator)[ Docs](https://github.com/mhfereydouni/unique-code-generator)[ GitHub Sponsors](https://github.com/mhfereydouni)[ RSS](/packages/mhfereydouni-unique-code-generator/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

This is my package unique-code-generator
========================================

[](#this-is-my-package-unique-code-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0b100c6665d41c1b3127ae3feba257f8abf3c578cbeccb699c8c61276f912a0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d686665726579646f756e692f756e697175652d636f64652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhfereydouni/unique-code-generator)[![Tests](https://github.com/mhfereydouni/unique-code-generator/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/mhfereydouni/unique-code-generator/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/6f436ea284f32ab801154e08bc2270dbfdc57a6f5479f94760952ba43174c520/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d686665726579646f756e692f756e697175652d636f64652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhfereydouni/unique-code-generator)

This package helps to generate codes which look like random strings. These codes can be used instead of your items ids to hide data.

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

[](#installation)

You can install the package via composer:

```
composer require mhfereydouni/unique-code-generator
```

Usage
-----

[](#usage)

```
$uniqueCodeGenerator = new Mhfereydouni\UniqueCodeGenerator\UniqueCodeGenerator(7230323, 9006077);
echo $uniqueCodeGenerator
            ->characterList('LQJCKZMWDPTSXRGANYVBHF')
            ->outputLength(6)
            ->generate(4);

// output: QDWQGD
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mohammadhossein Fereydouni](https://github.com/mhfereydouni)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

1454d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/100a72339f93155a3572a5b75676fca1cdcc65ad623aca2dc6042eb887ec8432?d=identicon)[mhfereydouni](/maintainers/mhfereydouni)

---

Top Contributors

[![moferry96](https://avatars.githubusercontent.com/u/56073286?v=4)](https://github.com/moferry96 "moferry96 (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

phpphp-packageunique-identifiermhfereydouniunique-code-generator

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mhfereydouni-unique-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/mhfereydouni-unique-code-generator/health.svg)](https://phpackages.com/packages/mhfereydouni-unique-code-generator)
```

###  Alternatives

[kaufmanndigital/gdpr-cookieconsent

A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.

2540.7k](/packages/kaufmanndigital-gdpr-cookieconsent)[selective/transformer

A strictly typed array transformer with dot-access, fluent interface and filters.

3817.8k1](/packages/selective-transformer)[derhansen/sf_banners

Banner-Management Extension based on Extbase and Fluid. Loads banners asynchronously using JavaScript.

1144.5k](/packages/derhansen-sf-banners)[martin/wn-forms-plugin

Create easy (and almost magic) AJAX forms

212.3k](/packages/martin-wn-forms-plugin)

PHPackages © 2026

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