PHPackages                             hao/hao-php-sdk - 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. hao/hao-php-sdk

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

hao/hao-php-sdk
===============

php 常用功能封装

0.5(5y ago)047MITPHPPHP &gt;=5.5.0

Since May 31Pushed 5y agoCompare

[ Source](https://github.com/JZhao1020/sdk)[ Packagist](https://packagist.org/packages/hao/hao-php-sdk)[ Docs](https://github.com/JZhao1020/php-sdk)[ RSS](/packages/hao-hao-php-sdk/feed)WikiDiscussions master Synced 3d ago

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

php常用功能封装
=========

[](#php常用功能封装)

开源地址
----

[](#开源地址)

\##安装

```
composer require hao/sdk

```

\##抽奖代码示例

```
$arr = [
   ['id' => 1,'prize' => '一等奖', 'v' => 1],
   ['id' => 2,'prize' => '二等奖', 'v' => 1],
   ['id' => 3,'prize' => '三等奖', 'v' => 100],
   ['id' => 4,'prize' => '谢谢参与', 'v' => 1000],
];
$class = \PHPSDK\Loader::get('Prize');
$result = $class->init($arr);
dump($result);

```

\##随机红包代码示例

```
$class = \PHPSDK\Loader::get('Hongbao');
$result = $class->red_rand(100,20);//100：总金额；20红包个数
dump($result);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

1880d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22906648?v=4)[hao](/maintainers/JZhao1020)[@JZhao1020](https://github.com/JZhao1020)

---

Top Contributors

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

---

Tags

hao-php-sdk

### Embed Badge

![Health badge](/badges/hao-hao-php-sdk/health.svg)

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

PHPackages © 2026

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