PHPackages                             gladyshev/yandex-direct-client - 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. gladyshev/yandex-direct-client

ActiveLibrary[API Development](/categories/api)

gladyshev/yandex-direct-client
==============================

Useful Yandex.Direct API v5 client.

v4.4.0(1y ago)1912.0k—0%7UNLICENSEPHPPHP ^7.4|^8.0CI failing

Since Dec 10Pushed 1y ago4 watchersCompare

[ Source](https://github.com/gladyshev/yandex-direct-client)[ Packagist](https://packagist.org/packages/gladyshev/yandex-direct-client)[ RSS](/packages/gladyshev-yandex-direct-client/feed)WikiDiscussions v4.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (34)Used By (0)

Yandex Direct API v5 PHP client
===============================

[](#yandex-direct-api-v5-php-client)

Современный и удобный PHP-клиент [Yandex.Direct API](https://tech.yandex.ru/direct/doc/dg/concepts/about-docpage/).

[![Build Status](https://camo.githubusercontent.com/3c247d40cdfe6e915aaa5c2c8276fb363b4a6e909d544c271a2b28c4f82b9430/68747470733a2f2f7472617669732d63692e6f72672f676c616479736865762f79616e6465782d6469726563742d636c69656e742e7376673f6272616e63683d76342e78)](https://travis-ci.org/gladyshev/yandex-direct-client)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/c238bf4e59a4993f40c5331b55b518f9fd7fa4f19738a78b8981494210cd070a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676c616479736865762f79616e6465782d6469726563742d636c69656e742f6261646765732f636f7665726167652e706e673f623d76342e78)](https://scrutinizer-ci.com/g/gladyshev/yandex-direct-client/?branch=v4.x)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1bd0ac793ec32d9c6251f618e32a1040d0d2f5b44feaecbc8238613e7005a33c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676c616479736865762f79616e6465782d6469726563742d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d76342e78)](https://scrutinizer-ci.com/g/gladyshev/yandex-direct-client/?branch=v4.x)

Требования
----------

[](#требования)

- PHP 7.2 и выше

Установка
---------

[](#установка)

```
$ composer require gladyshev/yandex-direct-client
```

Использование
-------------

[](#использование)

```
$credentials = \Gladyshev\Yandex\Direct\Credentials::client(
    getenv('_TOKEN_')
);

$httpClient = new \GuzzleHttp\Client(); // Guzzle 7 или любой другой PSR-18 HTTP-клиент

$client = new \Gladyshev\Yandex\Direct\Client(
    $credentials,
    $httpClient
);

$response = $client->campaigns->get(
    ['Ids' => [123545345, 23423234]],  // SelectionCriteria
    ['Status', 'Currency', 'Funds']    // FieldNames
);

print_r($response);

// [
//     'request_id' => 8695244274068608439,
//     'units_used_login' => 'ttt-agency',
//     'units' => [
//         'debit' => 10,
//         'rest' => 20828,
//         'limit' => 64000
//     ],
//     'result' => [...]
// ]
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance40

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor3

3 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 ~91 days

Recently: every ~315 days

Total

33

Last Release

511d ago

Major Versions

v1.1.0 → v2.0.02017-04-03

v2.5.0 → v3.0.02019-08-12

v3.1.2.1 → v4.0.0-beta2021-01-06

v3.2.0 → v4.0.02021-01-07

PHP version history (5 changes)v1.0.0-alphaPHP &gt;=5.4

v1.0.0PHP ^5.6|^7.0

v1.0.1PHP ^5.6||^7.0

v4.0.0-betaPHP ^7.2

v4.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ee9ba695159d6b854f55dd7ef9eb093a914547a3e1e57b2f0f32121feb8e2d2?d=identicon)[gladyshev](/maintainers/gladyshev)

---

Top Contributors

[![den-kuz](https://avatars.githubusercontent.com/u/15865994?v=4)](https://github.com/den-kuz "den-kuz (2 commits)")[![gladyshev](https://avatars.githubusercontent.com/u/3429161?v=4)](https://github.com/gladyshev "gladyshev (2 commits)")[![isypov-andrey](https://avatars.githubusercontent.com/u/9131454?v=4)](https://github.com/isypov-andrey "isypov-andrey (2 commits)")[![kradwhite](https://avatars.githubusercontent.com/u/7716061?v=4)](https://github.com/kradwhite "kradwhite (2 commits)")[![AgelxNash](https://avatars.githubusercontent.com/u/1748872?v=4)](https://github.com/AgelxNash "AgelxNash (1 commits)")

---

Tags

phpyandexyandex-directapiclientyandexdirectyandex.direct

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gladyshev-yandex-direct-client/health.svg)

```
[![Health](https://phpackages.com/badges/gladyshev-yandex-direct-client/health.svg)](https://phpackages.com/packages/gladyshev-yandex-direct-client)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[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)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[biplane/yandex-direct

PHP library for Yandex.Direct API

51172.8k2](/packages/biplane-yandex-direct)

PHPackages © 2026

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