oteixido / yii2-bank-module
Yii2 Bank Module
Installs: 169
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:yii2-extension
pkg:composer/oteixido/yii2-bank-module
Requires
- arogachev/yii2-many-to-many: ~0.3.0
 - kartik-v/yii2-export: ~1.3.9
 - kartik-v/yii2-widget-fileinput: ~1.0.8
 - kartik-v/yii2-widget-select2: ~2.1.1
 - miloschuman/yii2-highcharts-widget: *
 - oteixido/yii2-gui: ~1.0
 - oteixido/yii2-helpers: ~1.0
 - oteixido/yii2-importer: ~1.0
 - yiidoc/yii2-redactor: *
 - yiisoft/yii2: ~2.0.0
 - yiisoft/yii2-bootstrap: ~2.0.0
 - yiisoft/yii2-jui: ~2.0.0
 
This package is not auto-updated.
Last update: 2025-10-23 09:29:18 UTC
README
Yii2 Bank Module
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist oteixido/yii2-bank-module "*"
or add
"oteixido/yii2-bank-module": "*"
to the require section of your composer.json file.
Configuration
'modules' => [
    ...
    'gridview' => [
        'class' => 'kartik\grid\Module',
    ],    
    'bank' => [
        'class' => 'oteixido\bank\Module',
        'params' => [
            'invoices.upload.path' => '/uploads/invoices'
        ],
        'components' => [
            'importer' => [
                /*
                 * Example of CSV file
                 * 2018-05-01;-600,95;Transferencia recibida;CE;Transferencia
                 */
                'class' => 'oteixido\importer\ImporterCSV',
                'classname' => 'oteixido\bank\models\Transaction',
                'attributes' => [
                    [
                        'attribute' => 'date'
                    ],
                    [
                        'attribute' => 'value',
                        'filters' => [
                            '/\./' => '',
                            '/,/' => '.',
                        ],
                    ],
                    [
                        'attribute' => 'description',
                    ],
                    [
                        'attribute' => 'account_id',
                        'foreignClassname' => 'oteixido\bank\models\Account',
                        'foreignAttribute' => 'name',
                        'foreignKey' => 'id',
                    ],
                ],
            ],
        ],
    ],
    ...
]
Migrations
./yii migrate --migrationPath=vendor/oteixido/yii2-bank-module/migrations/