PHPackages                             requestlab/xiti-analytics - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. requestlab/xiti-analytics

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

requestlab/xiti-analytics
=========================

Xiti server-to-server interactions with ATInternet Xiti analytics REST API v2

1.0.2(10y ago)11141MITPHPPHP &gt;=5.4

Since Dec 7Pushed 10y ago2 watchersCompare

[ Source](https://github.com/RequestLab/xiti-analytics)[ Packagist](https://packagist.org/packages/requestlab/xiti-analytics)[ RSS](/packages/requestlab-xiti-analytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/2ac36cf528fa926fb7b0ec24a2f1d4fd8aeab4fc282d6df8cd8c67dd2d695809/68747470733a2f2f7472617669732d63692e6f72672f526571756573744c61622f786974692d616e616c79746963732e737667)](http://travis-ci.org/RequestLab/xiti-analytics)

The RequestLab Xiti Analytics library provides a way to use the AT Internet Analytics Data Query API.

It's inspired by the [Wid'op Google Analytics library](https://github.com/widop/google-analytics)

Documentation
-------------

[](#documentation)

### Installation

[](#installation)

To install the RequestLab Xiti Analytics library, you will need [Composer](http://getcomposer.org). It's a PHP 5.3+ dependency manager which allows you to declare the dependent libraries your project needs and it will install &amp; autoload them for you.

#### Set up Composer

[](#set-up-composer)

Composer comes with a simple phar file. To easily access it from anywhere on your system, you can execute:

```
$ curl -s https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

```

#### Define dependencies

[](#define-dependencies)

Create a `composer.json` file at the root directory of your project and simply require the `requestlab/xiti-analytics` package:

```
{
    "require": {
        "requestlab/xiti-analytics": "*"
    }
}

```

#### Install dependencies

[](#install-dependencies)

Now, you have define your dependencies, you can install them:

```
$ composer install

```

Composer will automatically download your dependencies &amp; create an autoload file in the `vendor` directory.

#### Autoload

[](#autoload)

So easy, you just have to require the generated autoload file and you are already ready to play:

```

```

The RequestLab Xiti Analytics library follows the [PSR-0 Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md). If you prefer install it manually, it can be autoload by any convenient autoloader.

### Usage

[](#usage)

#### Query

[](#query)

First, in order to request the ATInternet Analytics Query service, simply create a request and configure it according to your needs:

```
