{"id":7802890,"url":"https://github.com/mesilov/yandex-dialogs-php-sdk","last_synced_at":"2025-08-21T16:32:39.898Z","repository":{"id":57016867,"uuid":"125116386","full_name":"mesilov/yandex-dialogs-php-sdk","owner":"mesilov","description":"PHP-библиотека для облегчения работы с диалогами от Яндекс","archived":false,"fork":false,"pushed_at":"2018-08-08T20:08:16.000Z","size":12,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-02T22:35:12.471Z","etag":null,"topics":["alice","alice-sdk","alice-skills","alisa","php","sdk","yandex","yandex-alisa","yandex-dialogs"],"latest_commit_sha":null,"homepage":"https://alice-skills.ru/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mesilov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-13T21:22:53.000Z","updated_at":"2024-04-28T21:47:00.000Z","dependencies_parsed_at":"2022-08-22T09:30:30.657Z","dependency_job_id":null,"html_url":"https://github.com/mesilov/yandex-dialogs-php-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesilov%2Fyandex-dialogs-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesilov%2Fyandex-dialogs-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesilov%2Fyandex-dialogs-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesilov%2Fyandex-dialogs-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesilov","download_url":"https://codeload.github.com/mesilov/yandex-dialogs-php-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229141411,"owners_count":18026410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alice","alice-sdk","alice-skills","alisa","php","sdk","yandex","yandex-alisa","yandex-dialogs"],"created_at":"2024-04-12T06:00:38.559Z","updated_at":"2024-12-20T01:47:13.843Z","avatar_url":"https://github.com/mesilov.png","language":"PHP","funding_links":[],"categories":["Разработка"],"sub_categories":["SDK"],"readme":"# yandex-dialogs-php-sdk\nРепозиторий PHP-библиотеки для облегчения работы с диалогами\n\n## Пример использования\n```php\n// получаем входящий API-запрос\n$apiRequestArray = json_decode(trim(file_get_contents('php://input')), true);\n\n\n$dialogRequest = Yandex\\Dialogs\\Webhook\\Request\\Fabric::initFromArray($apiRequestArray);\n$responseFabric = new Yandex\\Dialogs\\Webhook\\Response\\Fabric($dialogRequest);\n\n$button1 = new Yandex\\Dialogs\\Webhook\\Response\\DTO\\Buttons\\Button();\n$button1\n    -\u003esetTitle('Кнопка1')\n    -\u003esetUrl('https://ya.ru');\n\n$button2 = new Yandex\\Dialogs\\Webhook\\Response\\DTO\\Buttons\\Button();\n$button2\n    -\u003esetTitle('Кнопка2');\n\n$response = $responseFabric\n    -\u003esetText('Привет')\n    -\u003esetTts('Привет')\n    -\u003eaddButton($button1)\n    -\u003eaddButton($button2)\n    -\u003ebuildResponse();\n\n\nheader('Content-Type: application/json');\nprint(json_encode(Yandex\\Dialogs\\Webhook\\Response\\Formatters\\Formatter::toArray($response), JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT));\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesilov%2Fyandex-dialogs-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesilov%2Fyandex-dialogs-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesilov%2Fyandex-dialogs-php-sdk/lists"}