2017 © Pedro Peláez
 

library sdk

A PHP client SDK for the Vleks.com API

image

vleks/sdk

A PHP client SDK for the Vleks.com API

  • Thursday, February 8, 2018
  • by Vleks
  • Repository
  • 3 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Vleks SDK for PHP

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock, (*1)

Installation

It's recommended that you use Composer to install the SDK., (*2)

composer require vleks/sdk

This will install the Vleks SDK.
PHP 5.6 or newer is required., (*3)

Usage

Create an index.php file with the following contents:, (*4)

<?php
use Vleks\SDK\Client;
use Vleks\SDK\Requests\ListProducts as ListProductsRequest;
use Vleks\SDK\Exceptions\ClientException;
use Vleks\SDK\Exceptions\ServiceException;

require 'vendor/autoload.php';

$publicKey  = '-- YOUR PUBLIC KEY --';
$privateKey = '-- YOUR PRIVATE KEY --';
$merchantId = '-- YOUR MERCHANT ID --';
$clusterUrl = '-- YOUR CLUSTER URL --'

$vleksClient = new Client($publicKey, $privateKey, $merchantId, $clusterUrl);

try {
    $request = new ListProductsRequest();
    $result  = $vleksClient->listProducts($request);

    print_r ($result->getProducts());
} catch (ClientException $clientException) {
    echo 'A Client error occurred: ' . $clientException->getMessage();
} catch (ServiceException $servicException) {
    echo 'A Service error occurred: ' . $servicException->getMessage();
}

See the contents of the examples directory for more information., (*5)

Tests

To execute the test suite, you'll need PHPUnit., (*6)

$ phpunit

License

The Vleks SDK for PHP is licensed under the MIT licence.
See the license file for more information., (*7)

The Versions

08/02 2018

dev-develop

dev-develop https://www.vleks.com

A PHP client SDK for the Vleks.com API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk vleks vleks.com

08/02 2018

dev-master

9999999-dev https://www.vleks.com

A PHP client SDK for the Vleks.com API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk vleks vleks.com

08/02 2018

2.0.0

2.0.0.0 https://www.vleks.com

A PHP client SDK for the Vleks.com API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk vleks vleks.com

08/02 2018

2.1.0

2.1.0.0 https://www.vleks.com

A PHP client SDK for the Vleks.com API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk vleks vleks.com

02/02 2018

1.0.0

1.0.0.0 https://www.vleks.com

A PHP client SDK for the Vleks.com API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk vleks vleks.com