Download the PHP package garak/card without Composer
On this page you can find all versions of the php package garak/card. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor garak
Package card
Short Description A PHP library to manage generic card games
License LGPL-3.0-or-later
Package card
Short Description A PHP library to manage generic card games
License LGPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package card
PHP Card library

Introduction
This library offers a few VO classes to use inside Card-related applications:
Card
: represents a Card, for example an ace of spades.Rank
: represents the rank value of a Card, for example "A" or "7" ("T" is used for 10, to keep the same length).Suit
: represents the card suit, for example spades or diamonds.
Some more classes, more elaborate, are available. They are abstract, and thus require a custom implementation to extend them:
Hand
: represents a set of Card objects, usually the ones assigned to a playerHandsTrick
: represents a trick of hands (think for example Poker, when players show their hands to declare a winner)CardTrick
: represents a trick of cards (think for example the 4 cards of a Bridge turn)
Installation
Just use composer require garak/card
.
Usage
Example:
You can also get a full deck:
All versions of card with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package garak/card contains the following files
Loading the files please wait ....