PHPackages                             requestlab/estat - 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/estat

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

requestlab/estat
================

Estat server-to-server interactions with Estat REST API v2

0.2(10y ago)0471MITPHPPHP &gt;=5.4

Since Feb 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/RequestLab/Estat)[ Packagist](https://packagist.org/packages/requestlab/estat)[ RSS](/packages/requestlab-estat/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/8cd53244ed5fbcbc67cfd72cfebc35f9ab3b5e8103fd45bf7674f71d5625be18/68747470733a2f2f7472617669732d63692e6f72672f526571756573744c61622f45737461742e737667)](http://travis-ci.org/RequestLab/estat)

The RequestLab Estat library provides a way to use the Mediametrie Estat 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 Estat 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/estat` package:

```
{
    "require": {
        "requestlab/estat": "*"
    }
}

```

#### 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 Estat 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 Estat Query service, simply create a request and configure it according to your needs:

```
