PHPackages                             zedisdog/chance - 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. zedisdog/chance

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

zedisdog/chance
===============

Probability draw

v0.0.1(9y ago)0331PHP

Since Jan 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zedisdog/chance)[ Packagist](https://packagist.org/packages/zedisdog/chance)[ RSS](/packages/zedisdog-chance/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (1)

Chance Lib
==========

[](#chance-lib)

---

根据概率抽奖

需要给一个奖品权重数组

install
-------

[](#install)

```
composer require zedisdog/chance

```

usage
-----

[](#usage)

```
$chance = new zedisdog/Chance($proArr);
$id = $chance->getRand();
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

3445d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8280666?v=4)[zed](/maintainers/zedisdog)[@zedisdog](https://github.com/zedisdog)

---

Top Contributors

[![zedisdog](https://avatars.githubusercontent.com/u/8280666?v=4)](https://github.com/zedisdog "zedisdog (9 commits)")

### Embed Badge

![Health badge](/badges/zedisdog-chance/health.svg)

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

###  Alternatives

[hmones/laravel-facade

Generates facades in your laravel project with one simple command.

101.1k](/packages/hmones-laravel-facade)

PHPackages © 2026

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