2017 © Pedro Peláez
 

library gameanalytics-php

PHP wrapper for the GameAnalytics REST API.

image

maartenstaa/gameanalytics-php

PHP wrapper for the GameAnalytics REST API.

  • Tuesday, February 23, 2016
  • by MaartenStaa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

GameAnalytics

PHP wrapper for the GameAnalytics REST API., (*1)

Build Status Scrutinizer Code Quality Code Coverage, (*2)

Installation

Using Composer, add the package to your require section., (*3)

{
    "require": {
        "maartenstaa/gameanalytics-php": "~2"
    }
}

This package requires you to select an HTTP client to be used. For more information, [read the documentation][4]., (*4)

Usage

First, create a client using the game key and associated secret key. The third parameter is the HTTP client you want to use. If you do not provide it, the package will try to auto-detect which one is available. The fourth and final parameter is the HTTP message factory you wish to use. Again, if you do not provide it, the package will try to auto-detect which is available., (*5)

use MaartenStaa\GameAnalytics\Client;

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

Next, you can use the "init" and "event" functions on the client to get a message instance. Use the set() function to configure the required parameters (refer to the official documentation) and use send() to send the message. You will receive a PSR-7 response object., (*6)

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

$message = $client->event('user');
$message->set('foo', 'bar')
    ->set('baz', 'bax')
    ->send();

Contributing

Coding standard

All code is to follow the [PSR-2][5] coding standard., (*7)

Unit tests

If you find a bug, feel free to send a pull request to fix it, but make sure to always include a regression test., (*8)

The Versions

23/02 2016

dev-master

9999999-dev

PHP wrapper for the GameAnalytics REST API.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maarten Staa

23/02 2016

v2.0

2.0.0.0

PHP wrapper for the GameAnalytics REST API.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maarten Staa

12/10 2015

v1.0.2

1.0.2.0

PHP wrapper for the GameAnalytics REST API.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maarten Staa

09/10 2015

v1.0.1

1.0.1.0

PHP wrapper for the GameAnalytics REST API.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maarten Staa

09/10 2015

v1.0

1.0.0.0

PHP wrapper for the GameAnalytics REST API.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maarten Staa