1. Go to this page and download the library: Download simplesquid/vend-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/ */
/**
* List products.
* Returns a paginated list of products.
*
* @param int|null $page_size The maximum number of items to be returned in the response.
* @param int|null $after The lower limit for the version numbers to be \Resources\TwoDotZero\ProductCollection
*/
$products = $vend->product->get($page_size, $after, $before, $deleted);
/**
* Get a single product.
* Returns a single product object with a given ID.
*
* @param string $id Valid product ID.
*
* @return \SimpleSquid\Vend\Resources\TwoDotZero\Product
*/
$product = $vend->product->find($id);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.