1. Go to this page and download the library: Download sixteenstudio/poker library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sixteenstudio / poker example snippets
$cards = [
new Card('Club', 1),
new Card('Spade', 2),
new Card('Club', 3),
new Card('Heart', 4),
new Card('Diamond', 5),
];
$deck = new Deck($cards);
$52CardDeck = Deck::newStandardDeck();
$hand = new Hand([$deck->takeCard(), $deck->takeCard()]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.