PHP Casino Script

MIT-licensed PHP game API

From a game round to a working PHP integration.

Play a virtual-point round, follow the JSON from request to result, and run the same dice, roulette, and card engine locally.

A browser request travels to a PHP game engine and returns to a JSON response panel

Play the live demo

Try all three games, see the exact server response, and run a browser simulation.

Compare game rules

Sort by win chance or expected net, change the example stake, and export the comparison.

Run it locally

Start the example in PHP, send a round, and check the returned values.