PHP SDK for Container World's xOrder EDI platform.
Examples of how the xOrder PHP SDK can be used are located in the examples directory.
$xorder = new XOrder\XOrder('xorder.xml', true); $credentials = new XOrder\Credentials('username', 'password', 'account'); $client = new XOrder\Client; $client->login($credentials); $response = $client->send($xorder);
The xOrder PHP SDK can also be used to validate your order xml against the xOrder schema declaration.
$xorder = new XOrder\XOrder('xorder.xml', true); $validator = new XOrder\XOrderValidator($xorder); $isValid = $validator->validate();
The xOrder PHP SDK has a PHPUnit test suite. To run the tests, run the following command from the project folder:
Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.
If you discover any security related issues, please email email@example.com instead of using the issue tracker.
Apache 2.0. Please see LICENSE for more information.