1. Go to this page and download the library: Download blucreation/smartwaste 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/ */
blucreation / smartwaste example snippets
$ent = new SmartWasteWasteCarrier();
$ent->carrierName = 'ABC Skips';
$ent->postcode = 'AA11 1AA';
$ent->address1 = '1 Main Street';
$ent->addLicence('AA1234AA', '2020-01-01');
$obj = new SaveWasteCarrierToCompany(12345, $ent); // 12345 is your Company ID
$res = SmartWaste::call($credentials, $obj);
// $res = wasteCarrierID (int)
$ent = new SmartWasteWasteDestination();
$ent->parentCarrierID = 54321; // ID created during above call
$ent->destinationName = 'ABC Skips';
$ent->postcode = 'AA11 1AA';
$ent->address1 = '1 Main Street';
$ent->addLicence('AA1234AA', '2020-01-01');
$obj = new SaveWasteDestinationToCompany(12345, $ent); // 12345 is your Company ID
$res = SmartWaste::call($credentials, $obj);
// $res = wasteDestinationID (int)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.