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

ActiveLibrary[API Development](/categories/api)

sitkoru/yandex-direct-api
=========================

Client for Yandex.Direct API v5

v2022.03.03(4y ago)3120.2k↓25%28[3 PRs](https://github.com/sitkoru/yandex-direct-api/pulls)1MITPHPPHP 7.4.\* || ^8.0

Since Dec 16Pushed 2y ago6 watchersCompare

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

READMEChangelog (10)Dependencies (15)Versions (119)Used By (1)

Библиотека больше не поддерживается
===================================

[](#библиотека-больше-не-поддерживается)

В связи с тем, что для нас пропала необходимость в этой библиотеке, она больше не развивается и не поддерживается. Мы рекомендуем перейти на активно поддерживаемую библиотеку от Биплан -

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

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/f0f4406be8feed7f6bbd5a9ca3c86e9ab77c11d1330ec0933e82d3e6b8e43555/68747470733a2f2f706f7365722e707567782e6f72672f7369746b6f72752f79616e6465782d6469726563742d6170692f762f737461626c65)](https://packagist.org/packages/sitkoru/yandex-direct-api) [![Total Downloads](https://camo.githubusercontent.com/02021022c6565be314750cdc92cc40ec4cfb66a4cf00464b9ff294b96e494a66/68747470733a2f2f706f7365722e707567782e6f72672f7369746b6f72752f79616e6465782d6469726563742d6170692f646f776e6c6f616473)](https://packagist.org/packages/sitkoru/yandex-direct-api) [![License](https://camo.githubusercontent.com/6723baaa804a0d3dce28c686984a284c37ecefb0ffa6dc91d72ada07a8cb3086/68747470733a2f2f706f7365722e707567782e6f72672f7369746b6f72752f79616e6465782d6469726563742d6170692f6c6963656e7365)](https://packagist.org/packages/sitkoru/yandex-direct-api)

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

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

```
composer require sitkoru/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

46

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 65.5% 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 ~18 days

Recently: every ~30 days

Total

104

Last Release

1511d 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

v2020.11.01 → v2021.03.012021-03-24

v2021.11.01 → v2022.01.012022-01-31

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

v2022.03.02PHP 7.4.\* || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba4d7950c512afb4b21fa0dbf8b6115087f10f90c4cb3fa308d6cb016483d34f?d=identicon)[SonicGD](/maintainers/SonicGD)

---

Top Contributors

[![SonicGD](https://avatars.githubusercontent.com/u/1222013?v=4)](https://github.com/SonicGD "SonicGD (348 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (63 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)")[![pogromistik](https://avatars.githubusercontent.com/u/10812344?v=4)](https://github.com/pogromistik "pogromistik (16 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)")[![BrainsRage](https://avatars.githubusercontent.com/u/7159616?v=4)](https://github.com/BrainsRage "BrainsRage (5 commits)")[![nikibleak](https://avatars.githubusercontent.com/u/18160653?v=4)](https://github.com/nikibleak "nikibleak (4 commits)")[![KMETb](https://avatars.githubusercontent.com/u/22026758?v=4)](https://github.com/KMETb "KMETb (4 commits)")[![evgenii1452](https://avatars.githubusercontent.com/u/41251961?v=4)](https://github.com/evgenii1452 "evgenii1452 (4 commits)")[![shude](https://avatars.githubusercontent.com/u/10113896?v=4)](https://github.com/shude "shude (4 commits)")[![dypa](https://avatars.githubusercontent.com/u/80477?v=4)](https://github.com/dypa "dypa (3 commits)")[![vaiil](https://avatars.githubusercontent.com/u/3755615?v=4)](https://github.com/vaiil "vaiil (2 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)")[![anton-github](https://avatars.githubusercontent.com/u/1921450?v=4)](https://github.com/anton-github "anton-github (1 commits)")

---

Tags

hacktoberfestphp-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/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)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[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)
