PHP code example of maescool / awwsavoclient

1. Go to this page and download the library: Download maescool/awwsavoclient 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/ */

    

maescool / awwsavoclient example snippets


/* Call the Composer autoloader */

## these values are max 10 digits in length.
$leveranciercode = "yoursuppliercode";
$usercode = "yourusercode";
$wachtwoord = "yourpassword";

try {
    $client = new AWWSAVOClient($leveranciercode, $usercode, $wachtwoord);
    # Get the supply status from a certain article, based on article code
    # the article code must be a string, no longer than 15 digits.
    $data = $client->getVoorraad("8715019301322");
    var_dump($data);
} catch (Exception $e) {
    echo $e->getMessage();
}