yii-user-accounting-module User accounting module for yii2

Notic: This module is not free and you should buy it to use. If you want to buy it please call me. Amin Keshavarz amin@keshavarz.pro - telegram: akeshavarz25 - +989120813856

How to install this module:

Step1: First add flowing codes into project composer.json

"repositories": [
    {
        "type": "gitlab",
        "url": "https://gitlab.com/aminkt/yii2-userAccounting-module"
    }
],

Then add flowing line to require part of composer.json : "aminkt/yii2-userAccounting-module": "*",

And after that run bellow command in your composer : Composer update aminkt/yii2-userAccounting-module

Step2: Add flowing lines in your application admin config in module part:

'userAccounting' => [
    'class' => \aminkt\userAccounting\UserAccounting::className(),
    'controllerNamespace' => \aminkt\userAccounting\UserAccounting::ADMIN_CONTROLLER_NAMESPACE,
    'transactionModel' => '\your\transaction-model\class',
    'userModel' => '\your\user-model\User',
],

Step3: Add flowing lines in your application frontend config in module part:

'userAccounting' => [
    'class' => \aminkt\userAccounting\UserAccounting::className(),
    'controllerNamespace' => \aminkt\userAccounting\UserAccounting::PANEL_CONTROLLER_NAMESPACE,
    'transactionModel' => 'your\transaction-model\class',
    'userModel' => '\your\user-model\User',
],

Step4: Implement aminkt\userAccounting\interfaces\TransactionInterface into your transaction model.

Step5: Implement aminkt\userAccounting\interfaces\UserInterface into your User model.

Note: Because every application need itself User model implementation so we don't create that in this module.

But we created a common Transaction model. if you want use it just ignore step 4 and remove transactionModel part in module config.

Database Migrations

Before usage this extension, we'll also need to prepare the database.

php yii migrate --migrationPath=@vendor/aminkt/yii2-userAccounting-module/migrations

Note: If you want use default Transaction table run below command to migrate it up. php yii migrate --migrationPath=@vendor/aminkt/yii2-userAccounting-module/migrations/manual-migrations

Structure of tables and classes: ΒΆ

alt text

0 0
1 follower
0 downloads
Yii Version: 2.0.*
License: (not set)
Category: Web Service
Developed by: Amin Keshavarz
Created on: Mar 26, 2018
Last updated: 11 months ago
Code Repository

Related Extensions