PHPoker provides a comprehensive toolkit for working with cards, decks, and poker hand evaluation. Below are examples of the main features and how to use them.
Source: https://github.com/PHPoker/Poker
Features
- Base classes for common card + poker related entities
- Card
- CardFace
- CardSuit
- CardCollection
- Evaluate
- Highly optimized 5-card/7-card hand evaluators (port of Kevin "CactusKev" Suffecool's algorithm)
Collection Hand Evaluation
The library includes a powerful hand evaluation engine based on Kevin "CactusKev" Suffecool's algorithm with perfect-hash improvements by Paul Senzee. This provides fast and accurate poker hand evaluation
Source: https://github.com/PHPoker/Poker