PHP Casino Script

Source package

Download the runnable PHP engine, example UI, and MIT license.

PHP Casino Script 1.0.0

The archive is the runnable example behind the public API. It contains the PHP engine, JSON route, browser demo, installation notes, and MIT license.

Download version 1.0.0 ZIP

Trace a round in the source

  1. Open public/developer-app/api.php to see how the endpoint reads and validates JSON, then calls playRound.
  2. Open .php-casino-script/Engine.php to follow the draw, the outcome and the return calculation.
  3. Open public/developer-app/demo.js to see the browser update its practice balance from the returned net amount.

The bundled example uses the original compact layout and talks to the same version of the API. Keep the license and copyright notice when redistributing the source.

Follow the local installation guide