PHP code example of psw-group / api-v1

1. Go to this page and download the library: Download psw-group/api-v1 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/ */

    

psw-group / api-v1 example snippets

 php                                                                         


use PswGroup\Api\TestClient;
use PswGroup\Api\Repository\ProductRepository;

tRepository = new ProductRepository($client);
$products = $productRepository->loadAll();