承接 destyk/escore-api-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

destyk/escore-api-php

最新稳定版本:1.0.0

Composer 安装命令:

composer require destyk/escore-api-php

包简介

Unofficial API for ESCore.gg

README 文档

README

Unofficial API for escore.gg written on PHP

Made with PHP Repo size issues Downloads Downloads

🔑 Library installation

You can install this library using composer:

composer require destyk/escore-api-php

📝 Using this library

require('vendor/autoload.php');

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();
}

📂 Available Methods

📌 Method $api->getUpcoming(array $body, array $query)

Returns a list of upcoming matches:

...
// 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
]);

Returns an object of class \DestyK\EScore\RequestException on error.

📌 Method $api->getLive(array $body, array $query)

Returns a list of matches that have already started:

...
// 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
]);

Returns an object of class \DestyK\EScore\RequestException on error.

📌 Method $api->getFinished(array $body, array $query)

Returns a list of matches that have already started:

...
// 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
]);

Returns an object of class \DestyK\EScore\RequestException on error.

📂 Games id's

ALL - 0
CS:GO - 3
Dota 2 - 4
LOL - 1

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固