PHP code example of promopult / integra-client
1. Go to this page and download the library: Download promopult/integra-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
promopult / integra-client example snippets
" ...
"promopult/integra-client": "*"
...
}
$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!"