hao / prize-sdk
php 抽奖处理
1.2
2018-05-31 07:43 UTC
Requires
- php: >=5.5.0
This package is auto-updated.
Last update: 2025-03-24 15:23:56 UTC
README
开源地址
https://github.com/JZhao1020/prize-sdk
##1.安装
composer require hao/prize-sdk
##2.示例
$arr = [
['id' => 1,'prize' => '一等奖', 'v' => 1],
['id' => 2,'prize' => '二等奖', 'v' => 1],
['id' => 3,'prize' => '三等奖', 'v' => 100],
['id' => 4,'prize' => '谢谢参与', 'v' => 1000],
];
$result = \Prize\Prize::init($arr);
dump($result);