PHPackages                             deannv/php-gachapon - 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. deannv/php-gachapon

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

deannv/php-gachapon
===================

A gachapon-like system, easy to integrate and play with.

v1.0.5(1y ago)08MITPHP

Since Aug 18Pushed 1y ago1 watchersCompare

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

READMEChangelog (6)DependenciesVersions (7)Used By (0)

PHP Simple Gachapon
===================

[](#php-simple-gachapon)

A wild, basic gachapon system that I highly doubt will be working.

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

[](#installation)

Install the package

```
composer require deannv/php-gachapon
```

Basic usage
-----------

[](#basic-usage)

`note` This package only accept associative array or key value pair data.

1. Simple use case

```
// item_name => drop_rate_in_percentage
Gacha::from(['a' => 2, 'b' => 10])->pull();
```

or if you want to get more than 1 result

```
Gacha::from(['a' => 2, 'b' => 10])->pull(2);
```

2. Using object

```
$data = [
    ["name" => "item1", "drop_rate" => 3],
    ["name" => "item2", "drop_rate" => 5],
    ["name" => "item3", "drop_rate" => 2]
];

Gacha::from($data)->pull();
```

3. Or just using pull

```
Gacha::pull(2, ['a' => 2, 'b' => 10]);
```

this is the result (array)

```
Array
(
    [0] => item2
)
```

that's it!

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

6

Last Release

633d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d0e433ebbc6f92951e3545a9108ab981afad8e3b7d2e82488852646f8ee2d77?d=identicon)[Deannv](/maintainers/Deannv)

---

Top Contributors

[![Deannv](https://avatars.githubusercontent.com/u/74144272?v=4)](https://github.com/Deannv "Deannv (10 commits)")

### Embed Badge

![Health badge](/badges/deannv-php-gachapon/health.svg)

```
[![Health](https://phpackages.com/badges/deannv-php-gachapon/health.svg)](https://phpackages.com/packages/deannv-php-gachapon)
```

###  Alternatives

[simple-updates/phpwhois

This package contains a Whois (RFC954) library for PHP. It allows a PHP program to create a Whois object, and obtain the output of a whois query with the Lookup function.

251.4k](/packages/simple-updates-phpwhois)

PHPackages © 2026

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