PHP's Premier Poker Solution
Requires PHP 8.2+
⚡️ Installation using Composer:
composer require phpoker/poker
- 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)
All contributions are welcomed -- bug fixes, features, ideas, criticisms, optimizations!
Take advantage of the included development tools:
🧹 Keep a modern codebase with Laravel Pint:
composer lint
✅ Run refactors using Rector
composer refacto
⚗️ Run static analysis using PHPStan:
composer test:types
✅ Run unit tests using PEST
composer test:unit
🚀 Run the entire test suite:
composer test
PHPoker was created by Nick Poulos under the MIT license.