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.6.0(1mo ago)1812.7k↓23.3%7UNLICENSEPHPPHP ^8.4CI failing

Since Dec 10Pushed 1mo 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 2w ago

READMEChangelog (10)Dependencies (15)Versions (36)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 8.4 и выше

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

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

```
$ 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

64

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

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

Recently: every ~145 days

Total

35

Last Release

31d 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 (6 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

v4.6.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3429161?v=4)[Dmitry Gladyshev](/maintainers/gladyshev)[@gladyshev](https://github.com/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

[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

36826.2k2](/packages/telnyx-telnyx-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M777](/packages/sylius-sylius)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.8M179](/packages/algolia-algoliasearch-client-php)

PHPackages © 2026

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