PHP code example of gameye / gameye-sdk-php
1. Go to this page and download the library: Download gameye/gameye-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/ */
gameye / gameye-sdk-php example snippets
$gameye = new \Gameye\SDK\GameyeClient([
'AccessToken' => 'yourgameyeapitoken',
'ApiEndpoint' => 'https://api.gameye.com',
]);
$gameye->commandStartMatch([
'matchKey' => 'yourmatchid',
'locationKeys' => ['amsterdam'],
'gameKey' => 'csgo',
'templateKey' => 'esl1on1',
'config' => [
'steamToken' => 'yoursteamgameservertoken',
'maxPlayers' => 12,
'maxRounds' => 15,
'tickRate' => 128,
'map' => 'de_dust2',
'mapgroup' => 'mg_active',
'teamNameOne' => 'Counter Terrorists',
'teamNameTwo' => 'Terrorists'
],
'endCallbackUrl' => 'https://platform.com/match?id=yourmatchid'
]);
'config' => [
'workshopMap' => 'workshopid',
'authkey' => 'yoursteamwebapikey'
],
$gameye->queryMatch();
$gameye->commandStopMatch([
'matchKey' => $matchKey,
]);
use \Gameye\SDK\GameyeSelector;
$match = $gameye->queryStatistic($matchKey);
GameyeSelector::selectTeamList($match);
GameyeSelector::selectTeamItem($match, $teamKey);
GameyeSelector::selectPlayerList($match);
GameyeSelector::selectPlayerListForTeam($match, $teamKey);
$steam = new \Gameye\SDK\SteamClient([
'WebToken' => 'webtoken',
]);
$steam->GameServersService->CreateAccountV1($appid, $memo);