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

ActiveLibrary

boolxy/random
=============

Generates random values

1.0.2(5y ago)729MITPHPPHP ^7.4 || ^8

Since Jan 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/boolxy/random)[ Packagist](https://packagist.org/packages/boolxy/random)[ RSS](/packages/boolxy-random/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Random
======

[](#random)

[![Tests](https://github.com/boolxy/random/workflows/Tests/badge.svg)](https://github.com/boolxy/random/workflows/Tests/badge.svg)[![StyleCI](https://camo.githubusercontent.com/0319d308387391b1b09d28e2c88bd0f41d45ef9effdf954829d1d747aef82869/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3333303234333731352f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/330243715?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/708115c3e3cf23d70eeac0fc764126df89b67768d8cc7fb559ff33f67ab623d0/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6c78792f72616e646f6d2f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/boolxy/random)[![License](https://camo.githubusercontent.com/2ba0b2fdd18be1ae31f8e2dd5fd364eaabdb257334dd777cd44600b57d744b27/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6c78792f72616e646f6d2f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/boolxy/random)

Generates random values

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

[](#installation)

This package can be installed via Composer:

```
composer require boolxy/random
```

Usage
-----

[](#usage)

```
use Boolxy\Random\Random;
```

```
// Number (Example result: 5793)
// Default length = 4
$result = Random::num($length);

// String (Example result: drkmwmlr)
// Default length = 8
$result = Random::str($length);

// Alphanumeric (Example result: Y20U89C9KEYSqcKw)
// Default length = 16
$result = Random::alpha($length);
```

Composer scripts
----------------

[](#composer-scripts)

With reviewing the tests, you can learn more about the package. Before testing: Copy phpunit.xml.dist as phpunit.xml and update it. After then you can start the testing.

- Run the tests

    ```
    composer test
    ```
- Check for PSR-2 standards

    ```
    composer check
    ```
- Apply PSR-2 standards

    ```
    composer fix
    ```

Credits
-------

[](#credits)

- [Sezai Ozarslan](https://github.com/sezaiozarslan)
- [All Contributors](https://github.com/boolxy/random/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/boolxy/random/blob/main/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Total

3

Last Release

1938d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d05f146dd04a85a52878e5dfc69c87abb0c08006787d0dcaa693cec6138e66c?d=identicon)[boolxy](/maintainers/boolxy)

---

Top Contributors

[![sezaiozarslan](https://avatars.githubusercontent.com/u/6480751?v=4)](https://github.com/sezaiozarslan "sezaiozarslan (22 commits)")

---

Tags

phprandom-generationrandom-number-generatorsrandom-numbersrandom-stringrandom-string-generatorsphprandom stringrandom numberrandom alphanumeric string

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[pragmarx/random

Create random chars, numbers, strings

714.2M5](/packages/pragmarx-random)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

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