This is an unofficial PHP SDK for Banggood API
The official documentation can be found here
If you have any issues with the API and not necessarily with the SDK please address to Banggood support team rather than opening a issue here.
Install the package via composer using :
composer require bigpaulie/banggood-php-sdk
Make sure you autoload the annotations before you use the SDK by including the following line of code before instantiating the SDK
/**
* Autoload Annotations
* This is used to deserialize a JSON string intro an object
*/
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
You can create an instance of BanggoodClient using a builder.
$credentials = new Credentials('appid', 'appsecret');
$client = (new BanggoodClientBuilder())
->credentials($credentials)
->environment(BanggoodClientFactory::TYPE_PRODUCTION)
->build();
There are many ways you can contribute to the project. If you found a bug please report it as an issue, or create a fork fix the bug and submit a pull-request.
Please maintain the coding style and testing pattern !