gonza4/tic-tac-toe-sdk-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  • curl, although you can use your own non-cURL client if you prefer
  • json

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固