fedornabilkin/yii2-exchange

The exchange of credits on the basis of Yii2

dev-master 2019-03-29 13:38 UTC

This package is not auto-updated.

Last update: 2024-05-16 16:18:39 UTC


README

The exchange of credits on the basis of Yii2

This extension uses the module yii2-user.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fedornabilkin/yii2-exchange "*"

or add

"fedornabilkin/yii2-exchange": "*"

to the require section of your composer.json file.

Migrations

php yii migrate --migrationPath=@fedornabilkin/exchange/migrations

Usage

Your project's User model must implement the interfaces/IExchangeUserInterface, since the user's actions on the exchange will initiate a call to the exchangeCreditAction(), exchangeCreditSale(), exchangeCreditBuy() methods.