PHP Poker Engine can be used to implement a Poker game engine. It has a class that can deal and shuffle a deck of cards. There is another class that can evaluate a deck of cards to check whether it matches a Poker sequence. If the deck matches a Poker sequence, it returns the name of the sequence and the number of points it is worth in the Poker game.
Release Notes: A new class called "pokerDeck2.php" is included in the package. It has improved shuffling using the mt_rand() function in favor of the shuffle() function. As a result, the "randomness" of the deal is improved.
Release Notes: The erroneous reference to the "include" files for secondPairTest and fhTest were removed. Also, the missing getKickerText methods were added to pairs and high cards.
Release Notes: The code was split into files for reassembly on the backend, since it was previously too large (530kb) for the server.
Release Notes: This release accomplishes the all important task of breaking ties and creating kickers. Users can get initial points, points for individual kickers, total points, and text for kickers (in addition to text for the hand). It also has a unique point system so that every hand combo has its own score (including with kickers).
Release Notes: The class in phpPokerEngine was renamed to "pokerEngine" from "massiveSwitch". massiveSwitch was the old name and is not used in the examples. To instantiate the objects accurately, you should use pokerengine.