承接 keios/oc-trait-financial 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

keios/oc-trait-financial

最新稳定版本:v1.0.1

Composer 安装命令:

composer require keios/oc-trait-financial

包简介

Financial trait for OctoberCMS' models.

README 文档

README

Latest Version Software License Total Downloads

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固