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

ActiveLibrary[API Development](/categories/api)

nekit44/admitad-php-api
=======================

PHP wrap for Admitad API

v0.0.4(3y ago)042MITPHPPHP ^8.1

Since Mar 23Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Admitad API

#### install

[](#install)

```
composer require nekit44/admitad-php-api

```

Documetation API Admtad [link](https://developers.admitad.com/hc/ru/articles/7981317512337)

#### get Access token use Client id and client secret

[](#get-access-token-use-client-id-and-client-secret)

```
$api = new Api();
$clientId = 'cb281d918a37e346b45e9aea1c6eb7';
$secret = 'a0f8a8b24de8b8182a0ddd2e89f5b1';

$data = $api->authorizedByClientIdAndSecret($clientId, $secret, scope:'advcampaigns banners websites');
```

#### Refresh token

[](#refresh-token)

```
$refreshToken = $api->refreshToken($clientId, $secret, $data->refresh_token);
```

#### or get Access token use base64\_header

[](#or-get-access-token-use-base64_header)

```
$api = (new Api())->setBasicToken('Y2IyODFkOTE4YTM3ZTM0NmI0NWU5YWVhMWM2ZWI3OmEwZjhhOGIyNGRlOGI4MTgyYTBkZGQyZTg5ZjViMQ==');
$clientId = 'cb281d918a37e346b45e9aea1c6eb7';
$data = $api->authorizedByBasicToken($clientId, scope:'advcampaigns banners websites');
```

#### Partner programs

[](#partner-programs)

```
$clientId = 'cb281d918a37e346b45e9aea1c6eb7';
$accessToken = (new Api())
    ->setBasicToken('Y2IyODFkOTE4YTM3ZTM0NmI0NWU5YWVhMWM2ZWI3OmEwZjhhOGIyNGRlOGI4MTgyYTBkZGQyZTg5ZjViMQ==')
    ->authorizedByBasicToken($clientId, 'advcampaigns banners websites');
$programs = (new Programs(new Api($accessToken->access_token)))->advcampaigns();
```

#### Partner program

[](#partner-program)

```
$program = (new Programs(new Api($accessToken->access_token)))->advcampaigns(id: 92, params: ['language' => Language::ES]);
```

#### Partner program for website

[](#partner-program-for-website)

```
$programWebsite = (new Programs(new Api($accessToken->access_token)))->advcampaignsWebsite(1);
```

#### Connecting the site to the program

[](#connecting-the-site-to-the-program)

```
$attach = (new Programs(new Api($accessToken->access_token)))->advcampaignsAttach(siteId: 1, partnerProgramId: 1);
```

#### Disconnecting the site from the program

[](#disconnecting-the-site-from-the-program)

```
$detach = (new Programs(new Api($accessToken->access_token)))->advcampaignsDetach(siteId: 1, partnerProgramId: 1);
```

#### Any way you can use the basic method GET or POST

[](#any-way-you-can-use-the-basic-method-get-or-post)

```
$clientId = 'cb281d918a37e346b45e9aea1c6eb7';
$accessToken = (new Api())
    ->setBasicToken('Y2IyODFkOTE4YTM3ZTM0NmI0NWU5YWVhMWM2ZWI3OmEwZjhhOGIyNGRlOGI4MTgyYTBkZGQyZTg5ZjViMQ==')
    ->authorizedByBasicToken($clientId, 'announcements manage_broken_links');
$methodGet = (new Method(new Api($accessToken->access_token)))->get('/announcements/');
$methodPost = (new Method(new Api($accessToken->access_token)))->post('/broken_links/resolve/', [
    'link_id' => 20
]);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

4

Last Release

1141d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d3df190bc6715173e923f06d6405abb096015dc82efee908f44f5b5a8c295f?d=identicon)[nekit44](/maintainers/nekit44)

---

Top Contributors

[![nekit44](https://avatars.githubusercontent.com/u/3051839?v=4)](https://github.com/nekit44 "nekit44 (21 commits)")

---

Tags

apiadmitad

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[admitad/api

Admitad api library

35200.5k1](/packages/admitad-api)[saleh7/proxmox-ve_php_api

ProxmoxVE PHP API

11718.7k](/packages/saleh7-proxmox-ve-php-api)[liamcottle/instagram-sdk-php

This is an unofficial SDK for the Instagram Private API in PHP

1308.4k](/packages/liamcottle-instagram-sdk-php)[manamine/php-eos-rpc-sdk

PHP SDK for the EOS RPC API

187.5k](/packages/manamine-php-eos-rpc-sdk)[megacreativo/cedulave-api

CedulaVE API permite consultar datos personales de habitantes de Venezuela inscritos en el CNE mediante su Cédula de Identidad.

261.3k](/packages/megacreativo-cedulave-api)

PHPackages © 2026

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