gonza4/tic-tac-toe-sdk-php
Composer 安装命令:
composer require gonza4/tic-tac-toe-sdk-php
包简介
Api clietn to play Tic Tac Toe
README 文档
README
A PHP library to play Tic Tac Toe through the Tic Tac Toe API.
Requirements
PHP 5.6 and later.
Composer
You can install the SDK via Composer. Run the following command:
composer require gonza4/tic-tac-toe-sdk-php
To use the SDK, use Composer's autoload:
require_once('vendor/autoload.php');
Dependencies
The SDK require the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
Getting Started
Simple usage looks like:
- Create a instance of the TicTacToe Client
$tictactoe = new \Gonza4\TicTacToe();
- Generate empty board
$result = $tictactoe->getEmptyBoard(); var_dump($result);
- Make a move
$result = $tictactoe->postPlayGame(1); var_dump($result);
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-22