Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 401 Bytes

httpclient.rst

File metadata and controls

12 lines (8 loc) · 401 Bytes

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.