dev-master
9999999-dev https://github.com/keiosweb/oc-trait-financialFinancial trait for OctoberCMS' models.
MIT
The Requires
- php >=5.4.0
- keios/moneyright >=1.0.1
money october octobercms financial
Wallogit.com
2017 © Pedro PelĂĄez
Financial trait for OctoberCMS' models.
Trait for OctoberCMS' models providing Keios/MoneyRight value object integration., (*2)
Via Composer, (*3)
``` bash $ composer require keios/oc-trait-financial, (*4)
## Usage ``` php class Account extends Model { // example model extending October's October\Rain\Database\Model use \Keios\Financial\Financial; protected $financial = [ 'balance' => [ // $model->balance instanceof \Keios\MoneyRight\Money // true 'balance' => 'amount', // amount : decimal(12,4) field in database 'currency' => 'currency' // currency : varchar(3) field in database ] ]; }
If you discover any security related issues, please email lukasz@c-call.eu instead of using the issue tracker., (*5)
The MIT License (MIT). Please see License File for more information., (*6)
Financial trait for OctoberCMS' models.
MIT
money october octobercms financial