Skip to content

DestinyLab/lottery-poetry-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lottery-Poetry-Engine

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages