sleekcommerce / sleekshop-phpsdk-json
Sleekshop PHP SDK for the Sleekshop API
2.0.0
2025-01-02 16:04 UTC
Requires
- php: >=8.0
- ext-curl: *
README
This is the official Sleekshop PHP SDK for the Sleekshop API. It is a wrapper around the Sleekshop API, which provides a simple way to interact with the API.
Sleekshop is a cloudbased e-commerce platform which allows you to deploy e-commerce functionality via API into your projects no matter what kind of programming - language you want to use, or which devices you want to address.
More about Sleekshop can be found at https://www.sleekshop.io
Documentation
For more information about the Sleekshop API, please refer to the official documentation.
Installation
Using composer
composer require sleekcommerce/sleekshop-phpsdk-json:v2
Usage
1. Setup SDK
include 'vendor/autoload.php'; use Sleekshop\sleekSDK; use Sleekshop\Options\DefaultOptions; // optional // optional $defaultOptions = new DefaultOptions( 'de_DE', // default language if not provided in call 'sleekshop', // token e.g. cookie name 100, // product image thumbnail height 'id' // chaining field ); $sleekshop = new sleekSDK( 'https://<yourInstance>.sleekshop.net/srv/service/', '<licence_username>', '<licence_password>', '<licence_secret_key>', // optional but required for some operations $defaultOptions // optional );
2. Interact with the API
$session = $sleekshop->SessionCtl()->GetSession();
License
This project is licensed under the MIT License - see the LICENSE file for details.