PHP code example of tomaivanovtomov / yii2-order

1. Go to this page and download the library: Download tomaivanovtomov/yii2-order 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/ */

    

tomaivanovtomov / yii2-order example snippets


'modules' => [
    ....
    'orders' => [
        'class' => 'tomaivanovtomov\order\Module',
    ],
    ....
],

\tomaivanovtomov\order\OrderAssets::register($this);

'language-information' => [
    'BG' => [
        'title' => 'Български',
        'extension' => 'bg',
    ],
    'EN' => [
        'title' => 'English',
        'extension' => 'en',
    ],
],
'languageDefault' => 'bg'
bash
php yii migrate/up --migrationPath=@vendor/tomaivanovtomov/yii2-order/migrations