PHP code example of pnl-apimatic / apimatic-pnl-sdk
1. Go to this page and download the library: Download pnl-apimatic/apimatic-pnl-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pnl-apimatic / apimatic-pnl-sdk example snippets
use PostnlEcommerceLib\Environment;
use PostnlEcommerceLib\Authentication\CustomHeaderAuthenticationCredentialsBuilder;
use PostnlEcommerceLib\PostnlEcommerceClientBuilder;
$client = PostnlEcommerceClientBuilder::init()
->customHeaderAuthenticationCredentials(
CustomHeaderAuthenticationCredentialsBuilder::init(
'apikey'
)
)
->environment(Environment::PRODUCTION_SERVER)
->build();