Download the PHP package shanginn/yandex-wordstat without Composer

On this page you can find all versions of the php package shanginn/yandex-wordstat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yandex-wordstat

Yandex Wordstat PHP SDK

Строго типизированный, современный PHP SDK для нового REST API Яндекс Wordstat. Построен на amphp/http-client для высокой производительности и crell/serde для надёжной сериализации объектов.

Возможности

Документация

📚 Смотреть полную документацию в Wiki

Быстрые ссылки

Установка

Начало работы

Инициализация

1. Информация о пользователе и квоте

2. Популярные запросы

3. Пакетный запрос для нескольких фраз

4. Динамика запросов

5. Региональная статистика

6. Дерево регионов

Аутентификация

Для работы с SDK необходим OAuth-токен Яндекса с доступом к Wordstat API.

Подробная инструкция по получению токена →

Краткий порядок действий:

  1. Создайте приложение на https://oauth.yandex.ru/client/new, выбрав доступ Использование API Вордстата.
  2. Подайте заявку на доступ к API в поддержку Яндекс Директа, указав логин и Client ID приложения.
  3. Авторизуйтесь по ссылке https://oauth.yandex.ru/authorize?response_type=token&client_id=<client_id> и сохраните выданный токен.

Установите переменную окружения:

Проверить токен можно прямым curl-запросом:

Доступные enum-классы

DeviceType — тип устройства

Значение Описание
DeviceType::ALL Все устройства
DeviceType::DESKTOP Компьютеры
DeviceType::MOBILE Мобильные устройства
DeviceType::PHONE Телефоны
DeviceType::TABLET Планшеты

DynamicsPeriod — период динамики

Значение Описание
DynamicsPeriod::DAILY По дням
DynamicsPeriod::WEEKLY По неделям
DynamicsPeriod::MONTHLY По месяцам

RegionType — тип региона

Значение Описание
RegionType::ANY Любые регионы
RegionType::CITIES Города
RegionType::REGIONS Регионы
RegionType::EVERYWHERE Везде

Обработка ошибок

Запуск тестов

Лицензия

MIT


All versions of yandex-wordstat with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/serializer Version ^7
symfony/property-access Version ^7
crell/serde Version ^1.3
amphp/http-client Version ^5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shanginn/yandex-wordstat contains the following files

Loading the files please wait ...