destinylab/lottery-poetry-jinqiangua

Lottery poetry - Jin Qian Gua(金錢卦)

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

This package is not auto-updated.

Last update: 2024-04-09 01:00:52 UTC


README

Lottery-Poetry-JinQianGua is the data of Lottery-Poetry-Engine.

Requirement

  • PHP >=5.4

Installing via Composer

The recommended way to install Lottery-Poetry-JinQianGua is through Composer.

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

Next, update your project's composer.json file to include Lottery-Poetry-JinQianGua:

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

Usage

<?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);

License

MIT