PHP code example of maartenstaa / gameanalytics-php

1. Go to this page and download the library: Download maartenstaa/gameanalytics-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/ */

    

maartenstaa / gameanalytics-php example snippets


use MaartenStaa\GameAnalytics\Client;

$client = new Client($gameKey, $secretKey);

$client->init()->set(array(...))->send();

$message = $client->event('user');
$message->set('foo', 'bar')
	->set('baz', 'bax')
	->send();
json
{
	"tenstaa/gameanalytics-php": "~2"
	}
}