install

clone project , from command/bash line run : git clone https://github.com/roozbeh360/dota-2-engine.git dota2engine

first of all you should enable these extentions in php.ini or on your host .

 find these lines and remove ; from beginning .

;extension=php_curl.dll ;

extension=php_gmp.dll 

like this : 

extension=php_curl.dll

 extension=php_gmp.dll

then you must get api key from valve :

http://steamcommunity.com/dev/apikey

at last edit action/config/config.php

 static public $api_key = "B6F432D___your key____956AD8234"; 

clear B6F432D___your key____956AD8234 and write your api key .

thers is some thing l should tell you , still api is down for some reason but test api is on and we can build our applications. static public $api_url = "http://api.steampowered.com/" ; static public $api_dota_name ="IDOTA2Match_205790"; above lines is api url if you change http to https it will using https portocol to load data and it have more benefits than http like get more data from steam profiles . IDOTA2Match_205790 is test version of api so when the times come to use it then you should change it to IDOTA2Match_570 .

ok that's it .

useage :

it's very easy just add engine.php to your php file and load objects .

require_once 'engine.php' ;

$doProcess = new doProcess();

 $match = $doProcess->fetchMatchDetailsById(1455138);

f($match){

echo $match->getRadiant_win();

}

you are getting match details by using simple method named fetchMatchDetailsById($match_id);

it takes match id and refers and complex object that contains all data you need .

there are many method and tools it giving to you so feel free to test any of it .

for full match details objects methods see : full match details object methods