Lottery-Poetry-Sixty-Jiazi is the data of Lottery-Poetry-Engine.
- PHP >=5.4
The recommended way to install Lottery-Poetry-Sixty-Jiazi is through Composer.
# Install Composer
curl -sS https://getcomposer.org/installer | php
Next, update your project's composer.json file to include Lottery-Poetry-Sixty-Jiazi:
{
"require": {
"destinylab/lottery-poetry-sixty-jiazi": "dev-master"
}
}
<?php
require_once 'vendor/autoload.php';
$suit = new DestinyLab\LotteryPoetry\SixtyJiazi([__DIR__.'/resources'], 'yml');
$engine = new DestinyLab\LotteryPoetry\Engine($suit);
// get contents
$engine->draw();
// get only key
$engine->draw(true);
MIT