PHPackages                             gourmet/money - 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. [Database &amp; ORM](/categories/database)
4. /
5. gourmet/money

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

gourmet/money
=============

Adds support Money data type to CakePHP 3 ORM.

63795PHP

Since Jan 20Pushed 10y ago2 watchersCompare

[ Source](https://github.com/gourmet/money)[ Packagist](https://packagist.org/packages/gourmet/money)[ RSS](/packages/gourmet-money/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Money (DataType)
================

[](#money-datatype)

[![Build Status](https://camo.githubusercontent.com/a9c280cafef046a661b492afe6e534aaa09530bbdbdf03d1f6040d87807e7a40/68747470733a2f2f7472617669732d63692e6f72672f676f75726d65742f6d6f6e65792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gourmet/money)[![Total Downloads](https://camo.githubusercontent.com/2209ff1d26b7c300552a4224b55ee940f5b5b5964fb0444b7acc9bfac785928b/68747470733a2f2f706f7365722e707567782e6f72672f676f75726d65742f6d6f6e65792f646f776e6c6f6164732e737667)](https://packagist.org/packages/gourmet/money)[![License](https://camo.githubusercontent.com/0095b1be5324e1fdf00b25276f596c03bb624993407cc104296013f9addf7f56/68747470733a2f2f706f7365722e707567782e6f72672f676f75726d65742f6d6f6e65792f6c6963656e73652e737667)](https://packagist.org/packages/gourmet/money)

Adds support for the [Money](http://github.com/sebastianbergmann/money) database type in [CakePHP 3](http://cakephp.org).

Install
-------

[](#install)

Using [Composer](http://getcomposer.org):

```
composer require gourmet/money:dev-master

```

You then need to load the plugin. In `boostrap.php`, something like:

```
\Cake\Core\Plugin::load('Gourmet/Money', ['bootstrap' => true]);
```

**NOTE: Important to autoload the plugin's `bootstrap.php`, which will register the new `money` type.**

Usage
-----

[](#usage)

In your table, define the `money` columns like so:

```
use Cake\Database\Schema\Table as Schema;

class OrdersTable extends Table
{
    protected function _initializeSchema(Schema $schema)
	{
		$schema->columnType('total', 'money');
		return $schema;
	}
}
```

For more details on `DataTypes`, read the official CakePHP 3 [documentation](http://book.cakephp.org/3.0/en/orm/saving-data.html#saving-complex-types).

Patches &amp; Features
----------------------

[](#patches--features)

- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches

Bugs &amp; Feedback
-------------------

[](#bugs--feedback)

License
-------

[](#license)

Copyright (c) 2015, Jad Bitar and licensed under [The MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccb57ae849b67ade8d9c1e266bc2868183bbcf07fb6c66c2d45254a452272d54?d=identicon)[jadb](/maintainers/jadb)

---

Top Contributors

[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (3 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (2 commits)")[![BorislavSabev](https://avatars.githubusercontent.com/u/1708306?v=4)](https://github.com/BorislavSabev "BorislavSabev (1 commits)")

### Embed Badge

![Health badge](/badges/gourmet-money/health.svg)

```
[![Health](https://phpackages.com/badges/gourmet-money/health.svg)](https://phpackages.com/packages/gourmet-money)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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