PHP code example of gonza4 / tic-tac-toe-sdk-php
1. Go to this page and download the library: Download gonza4/tic-tac-toe-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gonza4 / tic-tac-toe-sdk-php example snippets
$tictactoe = new \Gonza4\TicTacToe();
$result = $tictactoe->getEmptyBoard();
var_dump($result);
$result = $tictactoe->postPlayGame(1);
var_dump($result);