PHPackages                             f-dg/adjust-api-sdk - 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. f-dg/adjust-api-sdk

ActiveLibrary[API Development](/categories/api)

f-dg/adjust-api-sdk
===================

PHP SDK for Adjust API

v0.1(8y ago)022PHPPHP &gt;=5.5.9

Since Dec 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/f-dg/adjust-api-sdk)[ Packagist](https://packagist.org/packages/f-dg/adjust-api-sdk)[ RSS](/packages/f-dg-adjust-api-sdk/feed)WikiDiscussions master Synced yesterday

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

Adjust's web api documentations
===============================

[](#adjusts-web-api-documentations)

[Official doc](https://docs.adjust.com/en/kpi-service)

A note - do not read a rus variant of the docs, cause some not translated docblock just dropped

Description
===========

[](#description)

This SDK not fully implemented according to the official doc Feel free to add a new code to the SDK, but do not forget about unit tests

The default is:

- `response` as JSON", "CSV" not implemented
- time zone of account's

Adjust's API does not support a query to fetch list of applications

Installation
============

[](#installation)

via composer.json

```
  "require": {
    "f-dg/adjust-api-sdk": "dev-master"
  }
```

or via git clone

```
git clone git@github.com:f-dg/adjust-api-sdk.git
```

Example of fetching Overview statistics
=======================================

[](#example-of-fetching-overview-statistics)

```
    use \AdjustKPIService\OverviewStatistics,
        \AdjustKPIService\OverviewStatisticsValues as Params,
        \AdjustKPIService\adapter\CurlAdapter,
        \AdjustKPIService\AdjustKPIServiceException;

    try {

        $curlAdapter = new CurlAdapter;
        $apiConfig = [
            'user_token'    => 'token1',
            'app_token'     => 'token2',
        ];

        $startTimestamp = strtotime('-30 days');
        $endTimestamp   = time();
        $params = new Params;

        $overviewStats = new OverviewStatistics($curlAdapter, $apiConfig);
        $data = $overviewStats->getData([
            Params::REQUEST_PARAM_UTC_OFFSET => '00:00',
            Params::REQUEST_PARAM_START_DAY  => $params->formatRequestDate($startTimestamp),
            Params::REQUEST_PARAM_END_DAY    => $params->formatRequestDate($endTimestamp),
            Params::REQUEST_PARAM_KPIS       => $params->getAppKPIListForRequest(),
            Params::REQUEST_PARAM_EVENT_KPIS => $params->getEventKPIListForRequest(),
            Params::REQUEST_PARAM_GROUPING   => join(',', [Params::REQUEST_VALUE_GROUPING_TRACKER]),
        ]);

        print_r($data);

    } catch (AdjustKPIServiceException $e) {
        echo 'An error occurred: ' . PHP_EOL . $e->getMessage() . PHP_EOL;
    }
```

Example of fetching Event statistics
====================================

[](#example-of-fetching-event-statistics)

```
    use \AdjustKPIService\EventStatistics,
        \AdjustKPIService\EventStatisticsValues as Params,
        \AdjustKPIService\adapter\CurlAdapter,
        \AdjustKPIService\AdjustKPIServiceException;

    try {

        $curlAdapter = new CurlAdapter;
        $apiConfig = [
            'user_token'    => 'token1',
            'app_token'     => 'token2',
        ];

        $startTimestamp = strtotime('-30 days');
        $endTimestamp   = time();
        $params = new Params;

        $eventStats = new EventStatistics($curlAdapter, $apiConfig);
        $data = $eventStats->getData([
            Params::REQUEST_PARAM_UTC_OFFSET => '00:00',
            Params::REQUEST_PARAM_START_DAY  => $params->formatRequestDate($startTimestamp),
            Params::REQUEST_PARAM_END_DAY    => $params->formatRequestDate($endTimestamp),
            Params::REQUEST_PARAM_KPIS       => $params->getEventKPIListForRequest(),
            Params::REQUEST_PARAM_GROUPING   => join(',', [
                Params::REQUEST_VALUE_GROUPING_TRACKER,
                Params::REQUEST_VALUE_GROUPING_COUNTRIES,
                Params::REQUEST_VALUE_GROUPING_DAY,
            ]),
        ]);

        print_r($data);

    } catch (AdjustKPIServiceException $e) {
        echo 'An error occurred: ' . PHP_EOL . $e->getMessage() . PHP_EOL;
    }
```

Example of fetching Cohort statistics
=====================================

[](#example-of-fetching-cohort-statistics)

```
    use \AdjustKPIService\CohortStatistics,
        \AdjustKPIService\CohortStatisticsValues as Params,
        \AdjustKPIService\adapter\CurlAdapter,
        \AdjustKPIService\AdjustKPIServiceException;

    try {

        $curlAdapter = new CurlAdapter;
        $apiConfig = [
            'user_token'    => 'token1',
            'app_token'     => 'token2',
        ];

        $startTimestamp = strtotime('-30 days');
        $endTimestamp   = time();
        $params = new Params;

        $cohortStats = new CohortStatistics($curlAdapter, $apiConfig);
        $data = $cohortStats->getData([
            Params::REQUEST_PARAM_UTC_OFFSET => '00:00',
            Params::REQUEST_PARAM_START_DAY  => $params->formatRequestDate($startTimestamp),
            Params::REQUEST_PARAM_END_DAY    => $params->formatRequestDate($endTimestamp),
            Params::REQUEST_PARAM_KPIS       => $params->getCohortKPIListForRequest(),
            Params::REQUEST_PARAM_GROUPING   => join(',', [
                Params::REQUEST_VALUE_GROUPING_TRACKER,
                Params::REQUEST_VALUE_GROUPING_COUNTRIES,
                Params::REQUEST_VALUE_GROUPING_DAY,
            ]),
        ]);

        print_r($data);

    } catch (AdjustKPIServiceException $e) {
        echo 'An error occurred: ' . PHP_EOL . $e->getMessage() . PHP_EOL;
    }
```

Unit tests
----------

[](#unit-tests)

You may need to edit path to autoload.php in the phpunit.xml

```
bootstrap="./vendor/autoload.php"
```

```
cd path/to/adjust-api-sdk/tests && phpunit -v -c ../phpunit.xml . --coverage-text
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/438539?v=4)[Fabrizio Di Giuseppe](/maintainers/fdg)[@fdg](https://github.com/fdg)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/f-dg-adjust-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/f-dg-adjust-api-sdk/health.svg)](https://phpackages.com/packages/f-dg-adjust-api-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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