2017 © Pedro Pelรกez
 

library postnl-cif-rest-api-php-client

A PHP Client for the Post NL Webservices

image

avido/postnl-cif-rest-api-php-client

A PHP Client for the Post NL Webservices

  • Thursday, July 19, 2018
  • by avido
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Build Status Latest Stable Version Total Downloads License, (*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);

Example: Retrieve nearest locations based on address information

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

The Versions

19/07 2018

dev-master

9999999-dev https://github.com/avido/postnl-cif-rest-api-php-client

A PHP Client for the Post NL Webservices

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastiaan Blaas

api php postnl cif webservices

19/07 2018

v0.1.1

0.1.1.0 https://github.com/avido/postnl-cif-rest-api-php-client

A PHP Client for the Post NL Webservices

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastiaan Blaas

api php postnl cif webservices

19/07 2018

dev-delivery-options/locations

dev-delivery-options/locations https://github.com/avido/postnl-cif-rest-api-php-client

A PHP Client for the Post NL Webservices

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastiaan Blaas

api php postnl cif webservices

12/07 2018

v0.1.0

0.1.0.0 https://github.com/avido/postnl-cif-rest-api-php-client

A PHP Client for the Post NL Webservices

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastiaan Blaas

api php postnl cif webservices