PHPackages                             abmmhasan/game-draw - 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. abmmhasan/game-draw

Abandoned → [infocyph/game-draw](/?search=infocyph%2Fgame-draw)Library[Utility &amp; Helpers](/categories/utility)

abmmhasan/game-draw
===================

Generates Item and Item count for winners.

4.1.2(1w ago)14231[1 PRs](https://github.com/infocyph/Game-Draw/pulls)MITPHPPHP &gt;=8.2

Since Sep 28Pushed 1w ago1 watchersCompare

[ Source](https://github.com/infocyph/Game-Draw)[ Packagist](https://packagist.org/packages/abmmhasan/game-draw)[ RSS](/packages/abmmhasan-game-draw/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (8)Dependencies (7)Versions (20)Used By (0)

Game Draw
=========

[](#game-draw)

[![Security & Standards](https://github.com/infocyph/Game-Draw/actions/workflows/security-standards.yml/badge.svg)](https://github.com/infocyph/Game-Draw/actions/workflows/security-standards.yml)[![Documentation](https://camo.githubusercontent.com/f4c432aceada8db3417d4c0b46bef9c5f468a426428d578f3129d469d25ea530/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f63756d656e746174696f6e2d47616d65447261772d626c75653f6c6f676f3d72656164746865646f6373266c6f676f436f6c6f723d7768697465)](https://docs.infocyph.com/projects/Game-Draw/)[![Packagist Downloads](https://camo.githubusercontent.com/83aa4f117f776ba625f439533fddd91ac44497d2e9de07a6a5266104cf2ab947/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e666f637970682f47616d652d447261773f636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246696e666f6379706825324647616d652d44726177)](https://camo.githubusercontent.com/83aa4f117f776ba625f439533fddd91ac44497d2e9de07a6a5266104cf2ab947/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e666f637970682f47616d652d447261773f636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246696e666f6379706825324647616d652d44726177)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Packagist Version](https://camo.githubusercontent.com/13301e813c4bd1b6d46d177e07ff9423b2efb604827122b5f478fce247f00a21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e666f637970682f47616d652d44726177)](https://camo.githubusercontent.com/13301e813c4bd1b6d46d177e07ff9423b2efb604827122b5f478fce247f00a21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e666f637970682f47616d652d44726177)[![Packagist PHP Version](https://camo.githubusercontent.com/23f6b56baef0653e752863a50f76dfac7984fce2383a71d42d8c19e3b2ccaff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f696e666f637970682f47616d652d447261772f706870)](https://camo.githubusercontent.com/23f6b56baef0653e752863a50f76dfac7984fce2383a71d42d8c19e3b2ccaff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f696e666f637970682f47616d652d447261772f706870)[![GitHub Code Size](https://camo.githubusercontent.com/4ebea9cf1f201c7aa15536fe7722efd52cbe1c79c99550547dbf5ea89beeeb05/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f696e666f637970682f47616d652d44726177)](https://camo.githubusercontent.com/4ebea9cf1f201c7aa15536fe7722efd52cbe1c79c99550547dbf5ea89beeeb05/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f696e666f637970682f47616d652d44726177)

Unified PHP draw engine with a single request/response contract for item, user, and campaign draw methods.

Campaign state uses PSR-6 (`Psr\Cache\CacheItemPoolInterface`) via `options.cachePool`.

Install
-------

[](#install)

Requirements:

- PHP 8.2+
- `ext-bcmath`

```
composer require infocyph/game-draw
```

Quick Example
-------------

[](#quick-example)

```
