for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Nexylan packages.
*
* (c) Nexylan SAS <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nexy\PayboxDirect\HttpClient;
use GuzzleHttp\Client;
/**
* @author Sullivan Senechal <[email protected]>
final class GuzzleHttpClient extends AbstractHttpClient
{
* @var Client
private $client;
* {@inheritdoc}
public function init()
$this->client = new Client([
'base_uri' => $this->baseUrl,
'timeout' => $this->timeout,
]);
}
protected function request($parameters)
$response = $this->client->post('', [
'form_params' => $parameters,
return (string) $response->getBody();