PHP code example of sellix / php-sdk

1. Go to this page and download the library: Download sellix/php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sellix / php-sdk example snippets




Sellix\PhpSdk\Sellix;
use \Sellix\PhpSdk\SellixException;

// pass <MERCHANT_NAME> only if you need to be authenticated as an additional store

$client = new Sellix("<YOUR_API_KEY>", "<MERCHANT_NAME>");

try {
    $products = $client->get_products();
} catch (SellixException $e) {
    echo $e->__toString();
}


composer