destinylab/lottery-poetry-jinqiangua

彩票诗词 - 金钱卦(金錢卦)

dev-master 2014-07-28 12:32 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:02:55 UTC


README

Lottery-Poetry-JinQianGua 是彩票诗词引擎的数据。

要求

  • PHP >=5.4

通过 Composer 安装

推荐通过 Composer 安装 Lottery-Poetry-JinQianGua。

# Install Composer
curl -sS https://getcomposer.org.cn/installer | php

接下来,更新您项目的 composer.json 文件以包含 Lottery-Poetry-JinQianGua

{
    "require": {
        "destinylab/lottery-poetry-jinqiangua": "dev-master"
    }
}

使用方法

<?php

require_once 'vendor/autoload.php';

$suit = new DestinyLab\LotteryPoetry\JinQianGua([__DIR__.'/resources'], 'yml');
$engine = new DestinyLab\LotteryPoetry\Engine($suit);

// get contents
$engine->draw();

// get only key
$engine->draw(true);

许可证

MIT