HTTP ClientΒΆ
By default the library will use cURL or Guzzle when available. You can always switch HTTP clients as follows:
<?php
$postnl = new PostNL(...);
$postnl->setHttpClient(\ThirtyBees\PostNL\HttpClient\CurlClient::getInstance());
You can create a custom HTTP Client by implementing the \ThirtyBees\PostNL\HttpClient\ClientInterface
interface.