, (*1)
PostNL CIF Rest Webservices API Client for PHP
Open source PHP client for the [PostNL Rest CIF Webservices] (https://developer.postnl.nl/)., (*2)
Installation
Get it with composer, (*3)
Run the command:, (*4)
composer require avido/postnl-cif-rest-api-php-client
client initialization:
require __DIR__ . '/vendor/autoload.php';
use Avido\PostNLCifClient\CifApi;
$apikey = '--YOUR APIKEY --';
$client = new CifApi($apiKey);
use Avido\PostNLCifClient\Request\DeliveryOptions\Locations\NearestLocationsRequest;
// get nearest locations based on address information
$request = new NearestLocationsRequest();
$request->setCountryCode('NL')
->setPostalcode('2132WT')
->setCity('Hoofddorp')
->setStreet('Siriusdreef')
->setHouseNumber(42)
->setDeliveryDate('01-01-2999')
->setOpeningTime('09:00:00')
->addDeliveryOptions('PG');
// load api "getAPI" based on required services.
$response = $client->getAPI('location')->getNearestLocations($request);
Unit tests
<phpunit>
...
<php>
<env name="PHP_APIKEY" value="--YOUR APIKEY--"/>
</php>
</phpunit>
Implementation Status
This library is still in development, new releases / implementations will follow., (*5)
Delivery Options
Deliverydate webservice
| Service |
Implemented |
Version |
| Delivery date webservice |
| Deliverydate |
โ |
2_2 |
| Shippingdate |
โ |
2_2 |
| Location webservice |
| Nearest Locations |
โ |
2_1 |
| Nearest based on Geo location |
โ |
2_1 |
| Nearest based on Area |
โ |
2_1 |
| Location lookup |
โ |
2_1 |
| Timeframe webservice |
| timeframes |
โ |
2_1 |
Send & Track
Barcode webservice
| Service |
Implemented |
Version |
| Barcode service |
| Barcode (generate) |
โ |
N/A |
| Labelling webservice |
| Label (generate) |
โ |
N/A |
| Confirming webservice |
| Confirm |
โ |
N/A |
| Shippingstatus webservice |
| Status by barcode |
โ |
N/A |
| Status by reference id |
โ |
N/A |
| Status by reference id |
โ |
N/A |
| Status by kid ('kennisgeving id') |
โ |
N/A |
| Search |
โ |
N/A |
| Signature |
โ |
N/A |
Fraud Prevention
IBAN Check National
| Service |
Implemented |
Version |
| Validate IBAN |
โ |
N/A |
| Calculate (bankaccountnumber => iban) |
โ |
N/A |
Kreditcheck Zakelijk
| Service |
Implemented |
Version |
| Company Search API |
โ |
N/A |
| Credit Flag API |
โ |
N/A |
| Credit Advice API |
โ |
N/A |
| Creditworthiness API |
โ |
N/A |
| Creditworthiness API Large |
โ |
N/A |
Customer overview
Bedrijfscheck Nationaal
| Service |
Implemented |
Version |
| Companysearch |
โ |
N/A |
| Companyname and address |
โ |
N/A |
| Company address |
โ |
N/A |
| Company phone |
โ |
N/A |
| Company details |
โ |
N/A |
| Company details extra |
โ |
N/A |
| Authorized Signatory |
โ |
N/A |
| Cocextract |
โ |
N/A |
Mail
| Service |
Implemented |
Version |
| N/A |
โ |
N/A |