Git Product home page Git Product logo

postnl-cif-rest-api-php-client's Introduction

Build Status Latest Stable Version Total Downloads License

PostNL CIF Rest Webservices API Client for PHP

Open source PHP client for the [PostNL Rest CIF Webservices] (https://developer.postnl.nl/).

Installation

Get it with composer

Run the command:

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.

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

postnl-cif-rest-api-php-client's People

Contributors

avido avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.