1. Go to this page and download the library: Download destyk/escore-api-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/ */
destyk / escore-api-php example snippets
use DestyK\EScore\Signature;
use DestyK\EScore\API;
use DestyK\EScore\RequestException;
try {
$signature = new Signature();
$api = new API($signature);
// There will be an array with data about ALL UPCOMING matches
$response = $api->getUpcoming();
...
// There will be an array with data about CSGO UPCOMING matches
$response = $api->getUpcoming([
'gameType' => 3
]);
} catch(RequestException $e) {
echo $e->getMessage();
}
...
// There will be an array with data about ALL UPCOMING matches
$response = $api->getUpcoming();
// There will be an array with data about CSGO UPCOMING matches
$response = $api->getUpcoming([
'gameType' => 3
]);
...
// There will be an array with data about ALL LIVE matches
$response = $api->getLive();
// There will be an array with data about DOTA 2 LIVE matches
$response = $api->getLive([
'gameType' => 4
]);
...
// There will be an array with data about ALL FINISHED matches
$response = $api->getFinished();
// There will be an array with data about LOL FINISHED matches
$response = $api->getFinished([
'gameType' => 1
]);
$api->getUpcoming(array $body, array $query)
$api->getLive(array $body, array $query)
$api->getFinished(array $body, array $query)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.