promopult / yandex-business-api
Yandex.Business API client PHP-library
Installs: 1 313
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: ^7.4|^8.0
- ext-json: *
- guzzlehttp/psr7: ^1.8.4|^2.4.0
- psr/http-client: ^1.0.1
- psr/http-factory: ^1.0.1
- psr/http-message: ^1.0.1
Requires (Dev)
- guzzlehttp/guzzle: ^7.4.5
- monolog/monolog: ^2.8.0
- phpunit/phpunit: ^9.5.27
- squizlabs/php_codesniffer: ^3.7.1
README
Клиентская библиотека для API сервиса Яндекс.Бизнес
Ссылка на документацию API
Установка
$ composer require promopult/yandex-business-api
или
"require": {
// ...
"promopult/yandex-business-api": "*"
// ...
}
Примеры
Смотрите папку examples.
$client = new \Promopult\YandexBusinessApi\Client( new \Promopult\YandexBusinessApi\Config(getenv('__ACCESS_TOKEN__')), new \GuzzleHttp\Client() // PSR-18 HTTP-client ); $response = $client->pingping(); var_dump($response); // array(1) { // ["data"]=> // string(8) "pongpong" // }