1. Go to this page and download the library: Download torfs-ict/crembl 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/ */
torfs-ict / crembl example snippets
use bpost\Crembl\Client;
use bpost\Crembl\Config\TaskConfig;
$client = new Client('<secret>');
$task = new TaskConfig();
$task
->setDocumentTypeRegular()
->setAddresseeLine1('Microsoft Belgium')
->setAddresseeLine2('Corporate Village - Bayreuth Building')
->setAddressCountry('BE')
->setAddressZipCode('1935')
->setAddressCity('Zaventem')
->setAddressStreetName('Leonardo Da Vincilaan')
->setAddressStreetNumber('3');
$id = $client->createTask($task);