PHPackages                             delboy1978uk/casino - 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. delboy1978uk/casino

ActiveLibrary

delboy1978uk/casino
===================

Casino simulation in PHP

1102PHP

Since Sep 1Pushed 10y ago2 watchersCompare

[ Source](https://github.com/delboy1978uk/casino)[ Packagist](https://packagist.org/packages/delboy1978uk/casino)[ RSS](/packages/delboy1978uk-casino/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

casino
======

[](#casino)

[![Build Status](https://camo.githubusercontent.com/7895a5ffc2572deb122053991293888f32b03f96020e7848cef1f69e065d6e5d/68747470733a2f2f7472617669732d63692e6f72672f64656c626f7931393738756b2f636173696e6f2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/delboy1978uk/casino) [![Code Coverage](https://camo.githubusercontent.com/7f6d08fc9c484c8a51cd6886ae49994341a581715958a24a43bf4985c9d5fed4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64656c626f7931393738756b2f636173696e6f2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/delboy1978uk/casino/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/76edd760e77b367500a185b615d0ece6ee7a88f35561fe05963ff4171b4df82b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64656c626f7931393738756b2f636173696e6f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/delboy1978uk/casino/?branch=master)
Classes for simulating Casino games in PHP ##Installation Install using composer:

```
composer require delboy1978uk/casino

```

\##Usage

```
use Del\Casino();

$casino = new Casino();
$casino->createPlayer('Del',1000); // name, chips

$roulette = $casino->getRouletteTable();
$roulette->nextPlayersTurn()
         ->betRed(100)
         ->betSplit(31,34);
$results = $roulette->spinWheel();

```

\##The Shoe

```
__construct($decks);
dealCard();
discardCard(Card $card)
shuffleDeck();
getCardsRemaining();
resetShoe();

```

\##The Card

```
getSuit(); // eg. C, S, D, or H
getValue(); // eg. A, K, Q, J, 10, 9, etc
getAsText(); // eg. Ace of Spades
getSuitAsText();
getValueAsText();
flipCard(); // toggles crd face up or face down
flipFaceDown();
flipFaceUp();
isFaceDown();
getHtml($id = null)
getJson();

```

\##The Player

```
__construct($id);
getID();
addCard(Card $card);
removeCard($cardval); // The card as a shorthand string ie 10D
addChips($amount);
removeChips($amount);
getBalance();

```

\##The Table

```
__construct(Shoe $shoe, array $players);
addPlayer(Player $player);
removePlayer($id);
getPlayers(); //returns an array object with iterator
getNumPlayers();
getBanker();
setShoe(Shoe $shoe);
addToPot($amount);
removeFromPot($amount);
getPotBalance();
getHistory();

```

###  Health Score

21

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f20859ab2082170605b5961bb1f12493b087b08b7efa3ab0087ddbe0c9e0a94c?d=identicon)[delboy1978uk](/maintainers/delboy1978uk)

---

Top Contributors

[![delboy1978uk](https://avatars.githubusercontent.com/u/2684575?v=4)](https://github.com/delboy1978uk "delboy1978uk (29 commits)")

### Embed Badge

![Health badge](/badges/delboy1978uk-casino/health.svg)

```
[![Health](https://phpackages.com/badges/delboy1978uk-casino/health.svg)](https://phpackages.com/packages/delboy1978uk-casino)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
