b8000h/esports

获取电子竞技数据,如赛程、队伍信息等。

1.0.5 2018-05-28 06:32 UTC

This package is auto-updated.

Last update: 2024-09-28 23:25:52 UTC


README

此README通常会记录启动应用程序所需的步骤。

这个仓库是用来做什么的?

我该如何设置?

  • 设置总结
  • 配置
  • 依赖
  • 数据库配置
  • 如何运行测试
    <?php
    require 'vendor/autoload.php';
    

$schedule = new \Demaxiya\Schedule(); /**

  • 0: 所有游戏
  • 1: dota2
  • 2: lol(英雄联盟)
  • 4: csgo(CS:Go)
  • 5: ow(守望先锋)
  • 6: kog(王者荣耀)
  • 7: bob(球球大作战)
  • 8: cod(使命召唤)暂无比赛
  • 9: pubg(绝地求生)暂无比赛 */ $game_type = 6;
    $schedule_info = json_decode( $schedule->get($game_type,time()) ); //var_dump($schedule_info->data->scheduleList); $schedule_data = $schedule_info->data; // 只有 data 部分才是用得上的,值得配一个 symbol

echo $schedule_data->prevtime; echo $schedule_data->nexttime; foreach ($schedule_data->scheduleList as $d) {

//var_dump($d);
var_dump($d->time);

}

* Deployment instructions

### Contribution guidelines ###

* Writing tests
* Code review
* Other guidelines

### Who do I talk to? ###

* Repo owner or admin
* Other community or team contact