promopult / integra-client
Promopult Integra API v1 client library
v2.4.1
2024-09-18 10:03 UTC
Requires
- php: ^7.4|^8.0
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/psr7: ~2.6|~1.9
- psr/http-client: *
- psr/http-message: *
Requires (Dev)
- guzzlehttp/guzzle: ~7.4.5
- phpunit/phpunit: ~9.5.0
README
Клиентская библиотека для сервиса promopult.org.
Установка
$ composer require promopult/integra-client
или
"require": { ... "promopult/integra-client": "*" ... }
Примеры
Смотрите папку examples.
$client = new \Promopult\Integra\Client( new \Promopult\Integra\Credentials(getenv('__HASH__'), getenv('__KEY__')), new \AcmeCrypt(), new \GuzzleHttp\Client() ); $response = $client->hello([ 'name' => 'Dmitry' ]); var_dump($response->getData()); // string(14) "Hello, Dmitry!"