All Projects → mesilov → yandex-dialogs-php-sdk

mesilov / yandex-dialogs-php-sdk

Licence: MIT license
PHP-библиотека для облегчения работы с диалогами от Яндекс

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to yandex-dialogs-php-sdk

alice-renderer
Node.js библиотека для формирования ответов в навыках Яндекс Алисы.
Stars: ✭ 27 (+17.39%)
Mutual labels:  yandex, alice, alice-skills, alice-sdk
alice
Alice is a Go package providing helpers for developing skills for Alice virtual assistant via Yandex.Dialogs platform.
Stars: ✭ 15 (-34.78%)
Mutual labels:  alice, yandex-dialogs, alice-sdk
yandex-dialogs-client
Тестирование навыков Яндекс.Диалогов Алисы с автотестами
Stars: ✭ 37 (+60.87%)
Mutual labels:  alice, yandex-dialogs, alice-skills
alice-tester
Библиотека для автоматического тестирования навыков Алисы на Node.js.
Stars: ✭ 16 (-30.43%)
Mutual labels:  alice, alice-skills
awesome-alice
Библиотеки и ресурсы для Яндекс.Диалогов
Stars: ✭ 258 (+1021.74%)
Mutual labels:  yandex-dialogs, alice-sdk
yandex-disk-api
This library is built to use Yandex Disk API with PHP
Stars: ✭ 19 (-17.39%)
Mutual labels:  yandex
translate
A module grouping multiple translation APIs
Stars: ✭ 321 (+1295.65%)
Mutual labels:  yandex
ekstertera
Linux GUI клиент для работы с Яндекс.Диск (Yandex.Disk) через REST API
Stars: ✭ 33 (+43.48%)
Mutual labels:  yandex
alice-dotnet
Пример простого скилла для платформы Яндекс.Диалоги на c#
Stars: ✭ 17 (-26.09%)
Mutual labels:  alice
yandex-direct-api
PHP library for Yandex.Direct API v5 (abandoned)
Stars: ✭ 12 (-47.83%)
Mutual labels:  yandex
Yandex.Music.Api
Client Yandex.Music.Api for Yandex.Music
Stars: ✭ 53 (+130.43%)
Mutual labels:  yandex
YaSeeker
Yandex OSINT tool
Stars: ✭ 104 (+352.17%)
Mutual labels:  yandex
vertex
Vertex is a generalized, secure, peer-to-peer communications platform; formerly of the divmod.org project (https://code.launchpad.net/divmod.org/)
Stars: ✭ 74 (+221.74%)
Mutual labels:  alice
yandex-checkout-node
Node.js SDK for Yandex.Checkout (unofficial)
Stars: ✭ 64 (+178.26%)
Mutual labels:  yandex
yametrikapy
Python library for Yandex Metrika API
Stars: ✭ 20 (-13.04%)
Mutual labels:  yandex
YandexAlgorithms
Lecture notes, Code with comments.
Stars: ✭ 30 (+30.43%)
Mutual labels:  yandex
yandex-direct-client
Lightweight and useful Yandex Direct API version 5 client
Stars: ✭ 16 (-30.43%)
Mutual labels:  yandex
robots-txt-parser
PHP class for parse all directives from robots.txt files according to specifications
Stars: ✭ 38 (+65.22%)
Mutual labels:  yandex
drupal 8 unset html head link
🤖 Module for unset any wrong HTML links (like rel="delete-form", rel="edit-form", etc.) from head on Drupal 8.x websites. This is trust way to grow up position in SERP Google, Yandex, etc.
Stars: ✭ 19 (-17.39%)
Mutual labels:  yandex
xy2xy
A list of technologies similar to inner Yandex technologies
Stars: ✭ 112 (+386.96%)
Mutual labels:  yandex

yandex-dialogs-php-sdk

Репозиторий PHP-библиотеки для облегчения работы с диалогами

Пример использования

// получаем входящий API-запрос
$apiRequestArray = json_decode(trim(file_get_contents('php://input')), true);


$dialogRequest = Yandex\Dialogs\Webhook\Request\Fabric::initFromArray($apiRequestArray);
$responseFabric = new Yandex\Dialogs\Webhook\Response\Fabric($dialogRequest);

$button1 = new Yandex\Dialogs\Webhook\Response\DTO\Buttons\Button();
$button1
    ->setTitle('Кнопка1')
    ->setUrl('https://ya.ru');

$button2 = new Yandex\Dialogs\Webhook\Response\DTO\Buttons\Button();
$button2
    ->setTitle('Кнопка2');

$response = $responseFabric
    ->setText('Привет')
    ->setTts('Привет')
    ->addButton($button1)
    ->addButton($button2)
    ->buildResponse();


header('Content-Type: application/json');
print(json_encode(Yandex\Dialogs\Webhook\Response\Formatters\Formatter::toArray($response), JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].