PHPackages                             naffiq/php-randomorg-draws - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. naffiq/php-randomorg-draws

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

naffiq/php-randomorg-draws
==========================

PHP Random.org draws

v1.0.0(8y ago)14.9kMITPHP

Since Jul 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/naffiq/php-randomorg-draws)[ Packagist](https://packagist.org/packages/naffiq/php-randomorg-draws)[ RSS](/packages/naffiq-php-randomorg-draws/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

PHP Random.org Draws API
========================

[](#php-randomorg-draws-api)

[![Build Status](https://camo.githubusercontent.com/93efbff93398a2c56cd65a23b65ed99ec367bb9e950974fdec57deff3bfeb625/68747470733a2f2f7472617669732d63692e6f72672f6e61666669712f7068702d72616e646f6d6f72672d64726177732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/naffiq/php-randomorg-draws)[![Test Coverage](https://camo.githubusercontent.com/d3f2635c83576b58bae9c07cdbd99708c3e555c68448525cc2781a36fd582863/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e61666669712f7068702d72616e646f6d6f72672d64726177732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/naffiq/php-randomorg-draws/coverage)[![Code Climate](https://camo.githubusercontent.com/69a2e909b2a36832c510fad7617948d7eaf5190747bfe62e0fde27a9565b5051/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e61666669712f7068702d72616e646f6d6f72672d64726177732f6261646765732f6770612e737667)](https://codeclimate.com/github/naffiq/php-randomorg-draws)

This library helps you with connecting your app to [Random.org's Third-Party Draws service](https://draws.random.org/).

### Installation

[](#installation)

Preferable way to install this package is through composer:

```
$ composer require naffiq/php-randomorg-draws
```

### Usage

[](#usage)

You have to register random.org account and provide login/password to `\naffiq\randomorg\DrawService`constructor. Then you can create draws via `\naffiq\randomorg\DrawService::newDraw()` method, which will spawn an object of `\naffiq\randomprg\Draw`.

```
