CsxTexasHoldemPoker - A building block for your PHP poker site
This is the project page for CsxTexasHoldemPoker, a freely available and open source PHP class to create your own Texas Hold'em poker server. Using CsxTexasHoldemPoker, you can concentrate on layout and handling player events, like betting and folding. This class will take care of shuffling (basic randomizer though), dealing, showing cards and the ranking of the hands to establish the winner.

About the author
I have a normal job in the IT business and developing PHP scripts is mostly hobby. I sometimes like to publish the fruits of my hobby for everone else to enjoy, but developing hobby software like this will cost more time than I normally have.
If you use my software, I would like you to show me your appreciation by funding my hobby with donations. Any donation will do and it is no no obligation to donate. But if you want, please hit the button...
Description
The class implements a number of basic functions: shuffling, dealing hole and community cards, showing cards and the evaluation and ranking of hands.

It does not implement a poker game as it cannot handle the dynamics of the game on betting, raising, folding, pot tracking and paying out the winner. It basically creates a full game (= set of complete hands), neatly shuffled beforehand and ranks them in the background even before the game has been played out. It finally depends on who is left over in the pot to establish the winner based on their respective rankings. Simple isn't it ?

As a poker game programmer, you have to set up the layout of the game board, set up a game for a number of players, deal and rank them, handle all events and payments, let the class show the flop, turn and river if necessary and see who's still alive. You then check their previously established ranking scores to select the winner.
With a bit of Ajax programing and some $SESSION based storage to survive the game states, it should be relatively easy to create a basic poker game

The latest version is CsxTexasHoldemPoker v1.0 and it can be downloaded HERE

And you need the card images if you came here via PHPClasses:
- The big cards
- The medium cards
- The small cards

You can check the class out with this online demo
DISCLAIMER
CsxTexasHoldemPoker is (C) Copyright by Martijn Loots, 2008. CsxTexasHoldemPoker is licensed under the terms of the GNU Public License (GPL), version 3 or higher. Here are details on GPL if you like the reading material.