destinylab/lottery-poetry-engine

The engine of lottery poetry

dev-master 2015-04-18 17:17 UTC

This package is not auto-updated.

Last update: 2022-12-05 18:21:59 UTC


README

Build Status

Lottery-Poetry-Engine is the engine of lottery poetry.

Requirement

  • PHP >=5.4

Installing via Composer

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

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

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

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

Usage

<?php

require_once 'vendor/autoload.php';

$suit = new DestinyLab\LotteryPoetry\Suit([__DIR__.'/resources/'], 'yml');
$suit->get(1);
$suit->total();
$suit->getList();

$engine = new DestinyLab\LotteryPoetry\Engine($suit);

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

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

License

MIT