PHPackages                             maartenstaa/gameanalytics-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. maartenstaa/gameanalytics-php

ActiveLibrary[API Development](/categories/api)

maartenstaa/gameanalytics-php
=============================

PHP wrapper for the GameAnalytics REST API.

v2.0(10y ago)0771BSD-3-ClausePHPCI failing

Since Oct 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/MaartenStaa/gameanalytics-php)[ Packagist](https://packagist.org/packages/maartenstaa/gameanalytics-php)[ RSS](/packages/maartenstaa-gameanalytics-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

GameAnalytics
=============

[](#gameanalytics)

PHP wrapper for the GameAnalytics REST API.

[![Build Status](https://camo.githubusercontent.com/a212577f00e608dd22f2888dea7327b2a29283ffb39053d823167b4eb59fa99f/68747470733a2f2f7472617669732d63692e6f72672f4d61617274656e537461612f67616d65616e616c79746963732d7068702e737667)](https://travis-ci.org/MaartenStaa/gameanalytics-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c7cf853bd0d4276b942edf945d90290599f42588bc27867b9177d51d719c7702/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d61617274656e537461612f67616d65616e616c79746963732d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MaartenStaa/gameanalytics-php/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/40443781dc573da76343a926aad00ad8db5870969276b834ca220efb3204e340/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d61617274656e537461612f67616d65616e616c79746963732d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MaartenStaa/gameanalytics-php/?branch=master)

Installation
------------

[](#installation)

Using [Composer](http://getcomposer.org/), add the package to your `require` section.

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

This package requires you to select an HTTP client to be used. For more information, [read the documentation](http://php-http.readthedocs.org/en/latest/).

Usage
-----

[](#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.

```
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.

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

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

Contributing
------------

[](#contributing)

### Coding standard

[](#coding-standard)

All code is to follow the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) coding standard.

### Unit tests

[](#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.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity66

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Total

4

Last Release

3737d ago

Major Versions

v1.0.2 → v2.02016-02-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/33e827509a7fa4b6ad18dfacc6cf7e6c1a6cb58b9b61b83787e0940a371ac70c?d=identicon)[MaartenStaa](/maintainers/MaartenStaa)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maartenstaa-gameanalytics-php/health.svg)

```
[![Health](https://phpackages.com/badges/maartenstaa-gameanalytics-php/health.svg)](https://phpackages.com/packages/maartenstaa-gameanalytics-php)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[deeplcom/deepl-php

Official DeepL API Client Library

2616.2M66](/packages/deeplcom-deepl-php)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
