keios/oc-trait-financial
最新稳定版本:v1.0.1
Composer 安装命令:
composer require keios/oc-trait-financial
包简介
Financial trait for OctoberCMS' models.
README 文档
README
Trait for OctoberCMS' models providing Keios/MoneyRight value object integration.
Install
Via Composer
$ composer require keios/oc-trait-financial
Usage
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 ] ]; }
Security
If you discover any security related issues, please email lukasz@c-call.eu instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 433
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-09