PHPackages                             topmcfrance/api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. topmcfrance/api-client

ActiveLibrary[API Development](/categories/api)

topmcfrance/api-client
======================

TopMcFrance Api client for PHP

v1.0.1(9y ago)125MITPHPPHP ^5.6|^7.0

Since Sep 12Pushed 9y agoCompare

[ Source](https://github.com/TopMcFrance/api)[ Packagist](https://packagist.org/packages/topmcfrance/api-client)[ Docs](https://github.com/TopMcFrance/api)[ RSS](/packages/topmcfrance-api-client/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Top MC France - Vote Checker
============================

[](#top-mc-france---vote-checker)

Check a code to vote on the site of TopMcFrance before giving a reward for his vote.

[![Build Status](https://camo.githubusercontent.com/e388a45d7573459caa64821653b1013c4b15a6629516d46dd4d89db6c235b266/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f704d634672616e63652f6170692f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TopMcFrance/api/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/93c270881e209c9e2353cec9cb4d0b3affae39cb04dd1bb114e45b493c998c90/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f704d634672616e63652f6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TopMcFrance/api/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f51a5aedab2faaed9a0dfdc39687e51088e2e7c66989d4c6a483019b48cb6c9b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f704d634672616e63652f6170692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TopMcFrance/api/?branch=master)[![StyleCI](https://camo.githubusercontent.com/cf8a69de7366159ba3c0b555f6a6e083dc55416137696f3ec2a04d53f65bda7f/68747470733a2f2f7374796c6563692e696f2f7265706f732f36323437313633342f736869656c64)](https://styleci.io/repos/62471634)

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.

Each generated code is unique to the server and can only be used one time.

The Api is currently on developement.

Installation by composer
------------------------

[](#installation-by-composer)

Add into you composer.json :

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

```

Installation by autoload
------------------------

[](#installation-by-autoload)

If you haven't composer, you can include the autoload.php into you webpage

```
require_once "topmcfrance-api/autoload.php";

```

Usage
-----

[](#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
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3578d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6

v1.0.1PHP ^5.6|^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/472429?v=4)[Desjardins Jérôme](/maintainers/jewome62)[@jewome62](https://github.com/jewome62)

---

Top Contributors

[![jewome62](https://avatars.githubusercontent.com/u/472429?v=4)](https://github.com/jewome62 "jewome62 (9 commits)")

---

Tags

minecraftvotetopmcfrance

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/topmcfrance-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/topmcfrance-api-client/health.svg)](https://phpackages.com/packages/topmcfrance-api-client)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)[d3strukt0r/votifier-client

Simple Tool to send vote request to a server which has the Votifier plugin.

1624.3k](/packages/d3strukt0r-votifier-client)[navarr/minecraft-profile

Minecraft Profile API

241.5k](/packages/navarr-minecraft-profile)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
