Skip to content

AWWSAVO Service PHP Client Library using their SOAP

Notifications You must be signed in to change notification settings

Maescool/AWWSAVOClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP AWWSAVOClient

About

AWWSAVOClient is a PHP library to get the current stock status of suppliers using Accel-it-services.

The methods and variables are in dutch, since the soap wsdl is also defined in this language. I have documented this however in english.

Installation

composer require maescool/awwsavoclient

Usage

getVoorraad

the getVoorraad method returns an object with the data or throws an exception at failure.

/* Call the Composer autoloader */
require '../vendor/autoload.php';
use AWWSAVO\Client\AWWSAVOClient;

## 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();
}

About

AWWSAVO Service PHP Client Library using their SOAP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages