2017 © Pedro Peláez
 

library opendota

opendotaSDK

image

losingbattle/opendota

opendotaSDK

  • Sunday, June 24, 2018
  • by cpj555
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

opendota

opendota api接口 借鉴easywechat的设计模式, (*1)

<, (*2)

p align="center"> EasyWeChat , (*3)

📦 It is the SDK for opendota API, (*4)

Requirement

  1. PHP >= 7.0.0
  2. composer
  3. openssl 拓展

SDK 对所使用的框架并无特别要求, (*5)

Installation

composer require "losingbattle/opendota" -vvv

Usage

基本使用(以服务端为例):, (*6)

<?php

use OpenDota\Application;

$options = [
    'api_key'     => 'xxx', (选填 在官网申请后使用 取消每天调用次数限制),
    'log' => [
        'file' => __DIR__.'/opendota.log',
    ],
    'http' => [
        'retry'=>2
    ],
];

$app = new Application($options);

$heros = $app->heroes;
$teams = $app->teams;
(其他接口参考文档和phpstrom ctrl跳进去看 - -)
$heros->data();
$heros->recent_matches($hero_id);

Documentation

  • OpenDota官网 https://www.opendota.com/
  • OpenDota官方文档: https://docs.opendota.com

License

MIT, (*7)

The Versions

24/06 2018

dev-master

9999999-dev

opendotaSDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by losingBattle

sdk dota opendota

24/06 2018

1.0.2

1.0.2.0

opendotaSDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by losingBattle

sdk dota opendota

28/05 2018

1.0.1

1.0.1.0

opendotaSDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by losingBattle

sdk dota opendota

26/05 2018

1.0.0

1.0.0.0

opendotaSDK

  Sources   Download

MIT

The Requires

 

by losingBattle

sdk dota opendota