2017 © Pedro Peláez
 

library api-client

TopMcFrance Api client for PHP

image

topmcfrance/api-client

TopMcFrance Api client for PHP

  • Monday, September 12, 2016
  • by jewome62
  • Repository
  • 0 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Top MC France - Vote Checker

Check a code to vote on the site of TopMcFrance before giving a reward for his vote., (*1)

Build Status Scrutinizer Code Quality Code Coverage StyleCI, (*2)

For each vote on the site TopMcFrance with enabled API.
The site generates a verification code to enter the site. This class allows check TopMcFrance about the validity of a code., (*3)

Each generated code is unique to the server and can only be used one time., (*4)

The Api is currently on developement., (*5)

Installation by composer

Add into you composer.json :, (*6)

"topmcfrance/api-client": "^1.0"

Installation by autoload

If you haven't composer, you can include the autoload.php into you webpage, (*7)

require_once "topmcfrance-api/autoload.php";

Usage

use TopMcFrance\Api\VoteChecker;
use TopMcFrance\Api\ApiException;

$serverId = 1; // Your server Id
$code = '123456789' // Code take by our user after voting;

$voteChecker = new VoteChecker($serverId);

try{
    $voteChecker->checkCode($code);
    // vote confirmed, you can give so many diamond !
} catch(ApiException $e){
    $error = $e->getApiMessage();
    // error in check, see ApiException for more option
}

The Versions

12/09 2016

dev-master

9999999-dev https://github.com/TopMcFrance/api

TopMcFrance Api client for PHP

  Sources   Download

MIT

The Requires

  • php ^5.6|^7.0

 

The Development Requires

by Avatar jewome62

minecraft vote topmcfrance

12/09 2016

v1.0.1

1.0.1.0 https://github.com/TopMcFrance/api

TopMcFrance Api client for PHP

  Sources   Download

MIT

The Requires

  • php ^5.6|^7.0

 

The Development Requires

by Avatar jewome62

minecraft vote topmcfrance

12/09 2016

v1.0.0

1.0.0.0 https://github.com/TopMcFrance/api

TopMcFrance Api client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar jewome62

minecraft vote topmcfrance