PHPackages                             meniam/admitad-php-api - 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. meniam/admitad-php-api

ActiveLibrary[API Development](/categories/api)

meniam/admitad-php-api
======================

Admitad api library

0.1.5(7y ago)0890MITPHPPHP &gt;=5.3.0

Since Aug 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/meniam/admitad-php-api)[ Packagist](https://packagist.org/packages/meniam/admitad-php-api)[ RSS](/packages/meniam-admitad-php-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

admitad-api
===========

[](#admitad-api)

A PHP wrapper around the Admitad API

Install
-------

[](#install)

Install  and run the following command:

```
php composer.phar require admitad/api dev-master

```

Examples
--------

[](#examples)

#### Request access token

[](#request-access-token)

- By username / password

```
$api = new Admitad\Api\Api()
$response = $api->authorizeByPassword($clientId, $clientPassword, $scope, $username, $password);
$result = $response->getResult(); // or $response->getArrayResult();
```

- OAuth2

```
// 1 step - get oauth authorization url
$api = new Admitad\Api\Api();
$authorizeUrl = $api->getAuthorizeUrl($clientId, $redirectUri, $scope);
// redirect user to authorizeUrl

// 2 step - request access token by OAuth2 code returned from authorization url
$response = $api->requestAccessToken($clientId, $clientSecret, $code, $redirectUri);
$result = $response->getResult();
```

- Signed Request (for applications on apps.admitad.com)

```
$api = new Admitad\Api\Api();
$data = $api->parseSignedRequest($signedRequest, $clientSecret);
// this method throws Admitad\Api\Exception\InvalidSignedRequestException when $signedRequest is invalid
```

#### Refresh token

[](#refresh-token)

```
$result = $api->refreshToken($clientId, $clientSecret, $refreshToken)->getResult();
```

#### Methods

[](#methods)

There are 2 common methods to communicate with api:

```
$api = new Admitad\Api\Api($accessToken);

$api->get($path, $params);
$api->post($path, $params);

//for example
$data = $api->get('/advcampaigns/', array(
    'limit' => 20,
    'offset' => 0
))->getResult();
```

Paginated-result methods can be iterated in this way (instead of manually call methods with different offsets)

```
$iterator = $api->getIterator('/advcampaigns/', array(
    'order_by' => 'id'
));

foreach ($iterator as $campaign) {
    // do smth with campaign
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

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

Recently: every ~70 days

Total

6

Last Release

2682d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/476450?v=4)[Eugene Myazin](/maintainers/meniam)[@meniam](https://github.com/meniam)

---

Top Contributors

[![sirian](https://avatars.githubusercontent.com/u/897643?v=4)](https://github.com/sirian "sirian (26 commits)")[![bulychev](https://avatars.githubusercontent.com/u/4833024?v=4)](https://github.com/bulychev "bulychev (3 commits)")[![andreydiveev](https://avatars.githubusercontent.com/u/1609473?v=4)](https://github.com/andreydiveev "andreydiveev (1 commits)")[![lexasngrv](https://avatars.githubusercontent.com/u/2675913?v=4)](https://github.com/lexasngrv "lexasngrv (1 commits)")[![meniam](https://avatars.githubusercontent.com/u/476450?v=4)](https://github.com/meniam "meniam (1 commits)")

---

Tags

apiadmitad

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/meniam-admitad-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/meniam-admitad-php-api/health.svg)](https://phpackages.com/packages/meniam-admitad-php-api)
```

###  Alternatives

[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[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)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[admitad/api

Admitad api library

35200.5k1](/packages/admitad-api)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)

PHPackages © 2026

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