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

ActiveProject

komatsu98/random-string
=======================

The package create random string created by Komatsu.

07PHP

Since Aug 29Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Generate Random String
======================

[](#generate-random-string)

Generate random string with given length, types of characters.

Features
--------

[](#features)

- Function generateString($length, $has\_lower, $has\_upper, $has\_number, $has\_special\_character) with parameters: length - positive integer and 4 followed boolean data params. e.g: generateString("10",true, false, true, false) return a 10-character random string with lower characters, numbers, and special characters combined.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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://avatars.githubusercontent.com/u/33064638?v=4)[komatsu98](/maintainers/komatsu98)[@komatsu98](https://github.com/komatsu98)

---

Top Contributors

[![komatsu98](https://avatars.githubusercontent.com/u/33064638?v=4)](https://github.com/komatsu98 "komatsu98 (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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