PHPackages                             keios/oc-trait-financial - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. keios/oc-trait-financial

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

keios/oc-trait-financial
========================

Financial trait for OctoberCMS' models.

v1.0.1(2y ago)34351MITPHPPHP &gt;=5.4.0

Since Oct 13Pushed 2y ago3 watchersCompare

[ Source](https://github.com/keiosweb/oc-trait-financial)[ Packagist](https://packagist.org/packages/keios/oc-trait-financial)[ Docs](https://github.com/keiosweb/oc-trait-financial)[ RSS](/packages/keios-oc-trait-financial/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Keios/oc-trait-financial
========================

[](#keiosoc-trait-financial)

[![Latest Version](https://camo.githubusercontent.com/4a2e8dd132f77ed4de340756fd7cd4228d8eda9f3129127aca1d42fb85f48174/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b65696f737765622f6f632d74726169742d66696e616e6369616c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/keiosweb/oc-trait-financial/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/83131ca95fb2585adbabbe13ec6006b621dda4f7606fcd5bc029807eebb18b37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b65696f732f6f632d74726169742d66696e616e6369616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/keios/oc-trait-financial)

Trait for OctoberCMS' models providing [Keios/MoneyRight](http://github.com/keiosweb/moneyright) value object integration.

Install
-------

[](#install)

Via Composer

```
$ composer require keios/oc-trait-financial
```

Usage
-----

[](#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
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Keios Solutions](https://github.com/keiosweb)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

986d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/296396f9b0fca242c05ac714f5545e94cdaa3b95b5be1ccdd70ff534ff2b0b8e?d=identicon)[keiosweb](/maintainers/keiosweb)

---

Top Contributors

[![lbialy](https://avatars.githubusercontent.com/u/8607442?v=4)](https://github.com/lbialy "lbialy (10 commits)")[![keiosweb](https://avatars.githubusercontent.com/u/10880818?v=4)](https://github.com/keiosweb "keiosweb (2 commits)")

---

Tags

moneyoctoberoctobercmsfinancial

### Embed Badge

![Health badge](/badges/keios-oc-trait-financial/health.svg)

```
[![Health](https://phpackages.com/badges/keios-oc-trait-financial/health.svg)](https://phpackages.com/packages/keios-oc-trait-financial)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.8k69.4k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

7965.8k](/packages/firefly-iii-data-importer)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.5k1](/packages/rainlab-builder-plugin)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27270.4k2](/packages/rtlopez-decimal)[rainlab/sitemap-plugin

Sitemap plugin for October CMS

2280.9k1](/packages/rainlab-sitemap-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
