PHPackages                             sukohi/gacha - 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. sukohi/gacha

ActiveLibrary

sukohi/gacha
============

A PHP package mainly developed for Laravel to generate random string consisting of alphabets and(or) numeric characters.

0371PHP

Since Apr 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/Gacha)[ Packagist](https://packagist.org/packages/sukohi/gacha)[ RSS](/packages/sukohi-gacha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Gacha
=====

[](#gacha)

A PHP package mainly developed for Laravel to generate random string consisting of alphabets and(or) numeric characters.

Installation&amp;setting for Laravel
====================================

[](#installationsetting-for-laravel)

After installation using composer, add the followings to the array in app/config/app.php

```
'providers' => array(
    ...Others...,
    'Sukohi\Gacha\GachaServiceProvider',
)

```

Also

```
'aliases' => array(
    ...Others...,
    'Gacha' => 'Sukohi\Gacha\Facades\Gacha',
)

```

Usage
=====

[](#usage)

Basic

```
echo Gacha::generate();

```

with Length (Default: 7)

```
echo Gacha::generate(10);

```

Only nemeric characters

```
 echo Gacha::generate(5)->numeric();

```

Only alphabets

```
echo Gacha::generate(10)->alphabet();

```

Upper Case

```
echo Gacha::generate(7)->upperCase();
echo Gacha::generate()->alphabet()->upperCase();

```

Lower Case

```
echo Gacha::generate(15)->alphabet()->lowerCase();

```

Specific characters

```
echo Gacha::generate(8)->characters('abcd');

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (2 commits)")[![mean-cj](https://avatars.githubusercontent.com/u/1191385?v=4)](https://github.com/mean-cj "mean-cj (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-gacha/health.svg)

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

PHPackages © 2026

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