The goal of this project is to create a easy to implement connector to the Webservices platform. This connector currently supports SOAP to connect to Webservices.nl API's.
Note: protocol support will be extended with (XML-RPC, REST) to connect to Webservices API. Current implementation features a proxy class, that independent of protocol, can be used for type hinted function calls.
- PHP: 5.5+
- composer (https://getcomposer.org)
Please use composer to install this library.
composer require webservices-nl/platform-connector
// instantiate a connector factory, and build a connector
$connector = ConnectorFactory::build(['username' => 'myusername', 'password' => 'secret']);
$soapClient = $connector->create('soap', 'webservices');
// call the different functions with ease...
$response = $soapClient->getAccountEditV2();
// create a other protocol connector to webservices (not implemented yet)
$rpcClient = $connector->create('rpc', 'webservices');
$restClient = $connector->create('rest', 'webservices');
All services offered by Webservices.nl are available as methods in this class. All parameters are expected to be in UTF-8 encoding, output is in UTF-8 as well. For documentation see: https://ws1.webservices.nl/documentation
This client has been tested on PHP 5.5, 5.6 and 7.0. To run tests:
$ ./vendor/bin phpunit
Any questions, remarks, bugs? Please mail us.
- technical questions: mailto:tech@webservices.nl
- support questions: mailto:support.webservices.nl