1. Go to this page and download the library: Download ktscript/moysklad 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/ */
ktscript / moysklad example snippets
use MoySklad\ApiClient;
$api = new ApiClient('host', true, [
'login' => 'your_login',
'password' => 'your_password',
]);
$api->entity()->purchaseorder()->first(); //берет первый из возвращаемого списка
$api->entity()->purchaseorder()->first('name', 'my_name'); //берет первый из фильтрованного возвращаемого списка