PHPackages                             rtbhouse/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rtbhouse/sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rtbhouse/sdk
============

RTB House SDK

8.1.2(2mo ago)342.3k↓22.7%4[2 issues](https://github.com/rtbhouse-apps/rtbhouse-php-sdk/issues)MITPHPPHP ^7.4 || ^8CI passing

Since Jun 4Pushed 3mo ago5 watchersCompare

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

READMEChangelog (8)Dependencies (4)Versions (20)Used By (0)

RTB House SDK
=============

[](#rtb-house-sdk)

Overview
--------

[](#overview)

This library provides an easy-to-use PHP interface to RTB House API. It allows you to read and manage you campaigns settings, browse offers, download statistics etc.

API docs:

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

[](#installation)

RTB House SDK can be installed with [composer](https://getcomposer.org/):

```
$ composer require rtbhouse/sdk
```

Usage example
-------------

[](#usage-example)

Let's write a script which fetches campaign stats (imps, clicks, postclicks) and shows the result.

First, create `config.php` file with your credentials:

```
define('USERNAME', 'jdoe');
define('PASSWORD', 'abcd1234');
```

Then create `example.php` with code:

```
require_once('vendor/autoload.php');
require_once('config.php');

$api = new \RTBHouse\ReportsApi\ReportsApiSession(USERNAME, PASSWORD);
$advertisers = $api->getAdvertisers();
$stats = $api->getSummaryStats(
    $advertisers[0]['hash'],
    '2020-10-01',
    '2020-10-31',
    ['day'],
    ['impsCount', 'clicksCount', 'campaignCost', 'conversionsCount', 'ctr'],
    \RTBHouse\ReportsApi\Conversions::ATTRIBUTED_POST_CLICK
);
print_r($stats);
```

License
-------

[](#license)

[MIT](http://opensource.org/licenses/MIT/)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance69

Regular maintenance activity

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~167 days

Recently: every ~296 days

Total

18

Last Release

67d ago

Major Versions

3.0.0 → 4.0.02020-07-31

4.0.0 → 5.0.02020-10-19

5.0.2 → 6.0.02021-03-03

6.0.0 → 7.0.02021-04-26

7.0.1 → 8.0.02023-04-13

PHP version history (3 changes)1.1PHP ^7.0

5.0.2PHP ^7 || ^8

8.1.0PHP ^7.4 || ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/db13e3b1e09b126098d9fc03c7ce3c0981a3507a59af7baeda0f38c5722e00cb?d=identicon)[abahdanovich](/maintainers/abahdanovich)

![](https://www.gravatar.com/avatar/1c2120b0b7d9d93f39c9d6fd8c387dbada84e8de0fe0362c82615e40ed6e1029?d=identicon)[rtb\_hzegota](/maintainers/rtb_hzegota)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (35 commits)")[![peku33](https://avatars.githubusercontent.com/u/8615581?v=4)](https://github.com/peku33 "peku33 (15 commits)")[![abahdanovich-rtbh](https://avatars.githubusercontent.com/u/1276152?v=4)](https://github.com/abahdanovich-rtbh "abahdanovich-rtbh (11 commits)")[![kamilglod](https://avatars.githubusercontent.com/u/8168459?v=4)](https://github.com/kamilglod "kamilglod (7 commits)")[![skubiak-rtbh](https://avatars.githubusercontent.com/u/93592227?v=4)](https://github.com/skubiak-rtbh "skubiak-rtbh (5 commits)")[![jacek-jablonski](https://avatars.githubusercontent.com/u/35669512?v=4)](https://github.com/jacek-jablonski "jacek-jablonski (3 commits)")[![hzeg](https://avatars.githubusercontent.com/u/50139097?v=4)](https://github.com/hzeg "hzeg (2 commits)")[![jkbak](https://avatars.githubusercontent.com/u/46315696?v=4)](https://github.com/jkbak "jkbak (1 commits)")[![kmasuhr](https://avatars.githubusercontent.com/u/16387473?v=4)](https://github.com/kmasuhr "kmasuhr (1 commits)")[![hzegota-rtbh](https://avatars.githubusercontent.com/u/118168796?v=4)](https://github.com/hzegota-rtbh "hzegota-rtbh (1 commits)")

---

Tags

area-stats

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rtbhouse-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/rtbhouse-sdk/health.svg)](https://phpackages.com/packages/rtbhouse-sdk)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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