PHP code example of parcelmonkeygroup / pmuk-sdk-php
1. Go to this page and download the library: Download parcelmonkeygroup/pmuk-sdk-php 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/ */
parcelmonkeygroup / pmuk-sdk-php example snippets
<?PHP
arcelmonkeygroup\pmuksdk\client;
use parcelmonkeygroup\pmuksdk\HelloWorld;
// Add your credentials (obtain these from your account on parcelmonkey.co.uk)
$UserId = 'YOURUSERID';
$ApiKey = 'YOURAPIKEY';
$Version = '3.0';
// Initialise the client
$client = new client($UserId,$ApiKey, $Version);
// Create the request passing in the client
$request = new HelloWorld($client);
$request->setEcho('testing 123');
try {
$response = $request->send();
echo print_r($response,true);
} catch (\Exception $e) {
echo $e->getMessage();
}