PHP code example of skeeks / yii2-moysklad-api-client
1. Go to this page and download the library: Download skeeks/yii2-moysklad-api-client 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/ */
skeeks / yii2-moysklad-api-client example snippets
//App config
[
'components' =>
[
//....
'moyskladApiClient' =>
[
'class' => 'skeeks\yii2\moyskladApiClient\MoyskladApiClient',
'email' => '',
'password' => '',
],
//....
]
]
\Yii::$app->moyskladApiClient->getEntityVariantApiMethod();
\Yii::$app->moyskladApiClient->getEntityProductApiMethod();
php composer.phar