macklus/yii2-holded

Yii Framework extension for https://www.holded.com

Installs: 74

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

1.0.5 2018-02-12 06:59 UTC

This package is not auto-updated.

Last update: 2024-04-26 09:52:41 UTC


README

Yii Framework extension for https://www.holded.com

Installation

Install of macklus/yii2-holded consists of two steps:

Step 1: Install through composer

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.

Step 2: run migrations

You need to install required tables, by running, from your framework directory:

php yii migrate/up --migrationPath=@vendor/macklus/yii2-holded/migrations

Configuration

Add in your web.php config file:

'holded' => [
    'class' => 'macklus\holded\Holded',
    'apikey' => 'INSERT_HERE_YOUR_API_KEY',
    'curl_debug' => false,
],

Usage

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)