Download the PHP package stephenmittag/php-afterbuyapi without Composer
On this page you can find all versions of the php package stephenmittag/php-afterbuyapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stephenmittag/php-afterbuyapi
More information about stephenmittag/php-afterbuyapi
Files in stephenmittag/php-afterbuyapi
Package php-afterbuyapi
Short Description The WkAfterbuyApi provides a Symfony2 service to interact with the Afterbuy XML API
License MIT
Homepage https://github.com/asgoodasnu/afterbuyapi
Informations about the package php-afterbuyapi
PHP-AfterbuyApi
This fork of the WkAfterbuyApiBundle provides implementations for some endpoints of Afterbuy XML API using Guzzle.
Installation
Require the bundle and its dependencies with composer:
$ composer require stephenmittag/php-afterbuyapi
Usage
Retrieving a list of sold items from Afterbuy:
The response will be an instance of Wk\AfterbuyApiBundle\Model\XmlApi\GetSoldItems\GetSoldItemsResponse
and provides methods to traverse the XML sent back from Afterbuy such as fetching the orders:
Provide an array of filters defined in Afterbuy, for example a DateFilter or a DefaultFilter. The models for these filters can be found in Wk\AfterbuyApiBundle\Model\XmlApi\GetSoldItems\Filter
.
Updating sold items on Afterbuy:
The response will be an instance of Wk\AfterbuyApiBundle\Model\XmlApi\UpdateSoldItems\UpdateSoldItemsResponse
.
Dependencies
jms/serializer
- Allows you to easily serialize, and deserialize data of any complexityguzzlehttp/guzzle
- Guzzle is a PHP HTTP client library
PHPUnit Tests
You can run the tests using the following command:
$ vendor/bin/phpunit
Resources
Afterbuy XML Interface Documentation:
All versions of php-afterbuyapi with dependencies
symfony/framework-bundle Version ~2.6
symfony/yaml Version ~2.6
guzzlehttp/guzzle Version >=5.0,<7.0
jms/serializer Version ^1.1