Download the PHP package perf2k2/direct without Composer
On this page you can find all versions of the php package perf2k2/direct. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download perf2k2/direct
More information about perf2k2/direct
Files in perf2k2/direct
Package direct
Short Description PHP wrapper for Yandex Direct API version 5
License GPL-3.0-only
Informations about the package direct
direct
Нестабильная версия, не используйте в продакшене.
Обертка для работы с API Яндекс.Директа пятой версии.
Особенности
- Все структуры из документации представлены в виде объектов, в том числе enum
- Несколько провайдеров аутентификации, в том числе файл переменных окружения
- Встроенные хелперы для удобной работы с ответами (поддерживаются ответы справочника и статистики)
- Покрытие тестами основных компонентов
Требования
PHP >= 7.0
Зависимости
- myclabs/php-enum (для enum type hint)
- vlucas/phpdotenv (для чтения переменных окружения из файла)
- guzzlehttp/guzzle (для работы с api по http)
Установка
Наиболее быстрый и удобный способ установки - используя Composer:
Реализованные методы
Даже если метод реализован, есть вероятность отсутствия поддержки последних его возможностней
| Сервисы | Методы | Все |
|---|---|---|
| Campaigns | add, archive, delete, get, resume, suspend, unarchive, update | ✔ |
| AdGroups | add, delete, get, update | ✔ |
| Ads | add, archive, delete, get, moderate, resume, suspend, unarchive, update | ✔ |
| Creatives | get | ✔ |
| Keywords | add, delete, get, resume, suspend, update | ✔ |
| Bids | get, set, setAuto | ✔ |
| KeywordBids | get, set, setAuto | ✔ |
| BidModifiers | add, delete, get, set, toggle | ✔ |
| AudienceTargets | add, delete, get, resume, setBids, suspend | ✔ |
| RetargetingLists | add, delete, get, update | ✔ |
| VCards | add, get, delete | ✔ |
| Sitelinks | add, get, delete | ✔ |
| AdImages | add, get, delete | ✔ |
| AdExtensions | add, get, delete | ✔ |
| DynamicTextAdTargets | add, get, delete, resume, suspend, setBids | ✔ |
| Changes | check, checkCampaigns, checkDictionaries | ✔ |
| TurboPages | get | ✔ |
| Leads | get | ✔ |
| NegativeKeywordSharedSets | ||
| Dictionaries | get | ✔ |
| Clients | get, update | ✔ |
| AgencyClients | get, update, add | ✔ |
| KeywordsResearch | hasSearchVolume | ✔ |
Пример использования
Получение данных из справочника
Получение данных статистики (отчета)
Лицензия
GNU GPL v3
Copyright (C) 2017 Romannikov Nikita
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
All versions of direct with dependencies
myclabs/php-enum Version 1.6.6
vlucas/phpdotenv Version 2.*
guzzlehttp/guzzle Version 6.*