artincms/phpsdk-sleekshop

Sleekshop PHP SDK for the Sleekshop API

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/artincms/phpsdk-sleekshop

v2.0.1 2025-11-24 15:00 UTC

This package is auto-updated.

Last update: 2025-11-24 15:02:05 UTC


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.