PHPackages                             fabacks/random - 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. fabacks/random

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

fabacks/random
==============

A PHP class generate token, guid and string

1.7(6y ago)016MITPHPPHP &gt;=7.0.0CI failing

Since Aug 27Pushed 1y agoCompare

[ Source](https://github.com/Fabacks/Random)[ Packagist](https://packagist.org/packages/fabacks/random)[ RSS](/packages/fabacks-random/feed)WikiDiscussions master Synced 3d ago

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

Déscription
===========

[](#déscription)

Class PHP pour généré des GUID, des token, des passwords et des chaines (caractère, chiffre, caractère spéciaux)

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

[](#installation)

With composer
-------------

[](#with-composer)

```
    composer require Fabacks/Random
```

### Without composer

[](#without-composer)

```
    require_once YOUR_PATH."Random.php";
```

Usage
-----

[](#usage)

```
\Fabacks\Random::generate(8);
```

Doc
---

[](#doc)

Option possible pour la méthode generate generate(LONGEUR, CASE, TYPE)

### Constante CASE

[](#constante-case)

```
CASE_LOWER : Tous les caractère sont minuscule;
CASE_UPPER : Tous les caractère  sont en majuscule;
CASE_MIXTE : Mélange minuscule et majuscule;

```

### Constante Type

[](#constante-type)

```
TYPE_LETTER : Retourne une lettre de l'alphabet de A à Z
TYPE_NUMBER : Retourne un chiffre de 0 à 9
TYPE_ALPHANUMERIC : Retourne une lettre de l'alphabet de A à Z OU un chiffre de 0 à 9
TYPE_SPECIAL : Retourne un caractère spéciaux
TYPE_CHARACTER : Retourne une lettre, ou un nombre, ou caractère spéciaux

```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~132 days

Total

2

Last Release

2366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?d=identicon)[Fabacks](/maintainers/Fabacks)

---

Top Contributors

[![Fabacks](https://avatars.githubusercontent.com/u/11339763?v=4)](https://github.com/Fabacks "Fabacks (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mateusjatenee/shoppingcart

Laravel Shoppingcart

132.3k](/packages/mateusjatenee-shoppingcart)

PHPackages © 2026

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