2017 © Pedro PelĂĄez
 

library oc-trait-financial

Financial trait for OctoberCMS' models.

image

keios/oc-trait-financial

Financial trait for OctoberCMS' models.

  • Friday, February 27, 2015
  • by keiosweb
  • Repository
  • 2 Watchers
  • 1 Stars
  • 306 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Keios/oc-trait-financial

Latest Version Software License Total Downloads, (*1)

Trait for OctoberCMS' models providing Keios/MoneyRight value object integration., (*2)

Install

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 ] ]; }

Security

If you discover any security related issues, please email lukasz@c-call.eu instead of using the issue tracker., (*5)

Credits

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

27/02 2015

dev-master

9999999-dev https://github.com/keiosweb/oc-trait-financial

Financial trait for OctoberCMS' models.

  Sources   Download

MIT

The Requires

 

money october octobercms financial