PHPackages                             nameewgeniy/yandex-direct-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. nameewgeniy/yandex-direct-api

ActiveLibrary[API Development](/categories/api)

nameewgeniy/yandex-direct-api
=============================

Client for Yandex.Direct API v5

v2020.10.03(5y ago)02.5kMITPHPPHP &gt;=7.1.0

Since Dec 16Pushed 4y agoCompare

[ Source](https://github.com/nameewgeniy/yandex-direct-api)[ Packagist](https://packagist.org/packages/nameewgeniy/yandex-direct-api)[ RSS](/packages/nameewgeniy-yandex-direct-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (15)Versions (100)Used By (0)

PHP-обёртка над API Яндекс.Директ v5
====================================

[](#php-обёртка-над-api-яндексдирект-v5)

Набор классов для удобной работы с [API Яндекс.Директ](https://yandex.ru/dev/direct/).

[![Latest Stable Version](https://camo.githubusercontent.com/17c2af803a54817e8df08c55890809c4c8207c2404c9f2c12b49bbf3d4634a13/68747470733a2f2f706f7365722e707567782e6f72672f6e616d65657767656e69792f79616e6465782d6469726563742d6170692f762f737461626c65)](https://packagist.org/packages/nameewgeniy/yandex-direct-api) [![Total Downloads](https://camo.githubusercontent.com/ec604a1d90e768b906bd15469b33d2703e0eadc1badb984677806bb0a44599f5/68747470733a2f2f706f7365722e707567782e6f72672f6e616d65657767656e69792f79616e6465782d6469726563742d6170692f646f776e6c6f616473)](https://packagist.org/packages/nameewgeniy/yandex-direct-api) [![License](https://camo.githubusercontent.com/929af988666b6d58084d6c39bb14bcb034407ae842153131e2f8310f9ada21f6/68747470733a2f2f706f7365722e707567782e6f72672f6e616d65657767656e69792f79616e6465782d6469726563742d6170692f6c6963656e7365)](https://packagist.org/packages/nameewgeniy/yandex-direct-api)

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

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

```
composer require nameewgeniy/yandex-direct-api
```

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

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

### Подготовка

[](#подготовка)

Необходимо инициировать аннотации. Замените

```
require __DIR__ . '/vendor/autoload.php';
```

На

```
$loader = require __DIR__ . '/vendor/autoload.php';
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
```

### Первый вызов

[](#первый-вызов)

Для примера, получим список активных кампаний аккаунта

```
$directApiService = new DirectApiService("ваш токен", "ваш логин");
$criteria = new CampaignsSelectionCriteria();
$criteria->States = [CampaignStateEnum::ON];
$campaigns = $directApiService->getCampaignsService()->get($criteria, CampaignFieldEnum::getValues());
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 68.9% 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 ~21 days

Recently: every ~119 days

Total

89

Last Release

1580d ago

Major Versions

2017.12.7 → 2018.1.12018-01-29

2018.12.2 → 2019.1.12019-01-24

2019.10.2 → 2020.02.012020-02-26

PHP version history (2 changes)2018.8.1-rc1PHP &gt;=7.1.0

0.1.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![SonicGD](https://avatars.githubusercontent.com/u/1222013?v=4)](https://github.com/SonicGD "SonicGD (290 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (27 commits)")[![KateAAAA](https://avatars.githubusercontent.com/u/8675207?v=4)](https://github.com/KateAAAA "KateAAAA (21 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (20 commits)")[![ovsenb](https://avatars.githubusercontent.com/u/137980043?v=4)](https://github.com/ovsenb "ovsenb (11 commits)")[![puld](https://avatars.githubusercontent.com/u/1898749?v=4)](https://github.com/puld "puld (10 commits)")[![Crtex](https://avatars.githubusercontent.com/u/4453999?v=4)](https://github.com/Crtex "Crtex (8 commits)")[![slowcheetah](https://avatars.githubusercontent.com/u/11753373?v=4)](https://github.com/slowcheetah "slowcheetah (5 commits)")[![pogromistik](https://avatars.githubusercontent.com/u/10812344?v=4)](https://github.com/pogromistik "pogromistik (5 commits)")[![BrainsRage](https://avatars.githubusercontent.com/u/7159616?v=4)](https://github.com/BrainsRage "BrainsRage (5 commits)")[![shude](https://avatars.githubusercontent.com/u/10113896?v=4)](https://github.com/shude "shude (4 commits)")[![KMETb](https://avatars.githubusercontent.com/u/22026758?v=4)](https://github.com/KMETb "KMETb (4 commits)")[![nameewgeniy](https://avatars.githubusercontent.com/u/10694033?v=4)](https://github.com/nameewgeniy "nameewgeniy (4 commits)")[![nikibleak](https://avatars.githubusercontent.com/u/18160653?v=4)](https://github.com/nikibleak "nikibleak (3 commits)")[![yasitko](https://avatars.githubusercontent.com/u/1772689?v=4)](https://github.com/yasitko "yasitko (1 commits)")[![git407](https://avatars.githubusercontent.com/u/10234065?v=4)](https://github.com/git407 "git407 (1 commits)")[![vaiil](https://avatars.githubusercontent.com/u/3755615?v=4)](https://github.com/vaiil "vaiil (1 commits)")[![anton-github](https://avatars.githubusercontent.com/u/1921450?v=4)](https://github.com/anton-github "anton-github (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nameewgeniy-yandex-direct-api/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[sitkoru/yandex-direct-api

Client for Yandex.Direct API v5

3120.2k1](/packages/sitkoru-yandex-direct-api)[jasonroman/nba-api

PHP Library to request data from various endpoints on NBA websites

994.6k](/packages/jasonroman-nba-api)

PHPackages © 2026

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