Yii Framework extension for https://www.holded.com
Install of macklus/yii2-holded consists of two steps:
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist macklus/yii2-holded "*"
or add
"macklus/yii2-holded": "~1.0"
to the require section of your composer.json
file.
You need to install required tables, by running, from your framework directory:
php yii migrate/up --migrationPath=@vendor/macklus/yii2-holded/migrations
Add in your web.php config file:
'holded' => [
'class' => 'macklus\holded\Holded',
'apikey' => 'INSERT_HERE_YOUR_API_KEY',
'curl_debug' => false,
],
Yo can call any of holded component functions by calling it directly, like:
Yii::$app->holded->createwaybill($somedata)
You can see file to see how function works (this is a pending task)