PHPackages                             kumwe/conversion - 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. kumwe/conversion

ActiveLibrary

kumwe/conversion
================

The money and quantity conversion contract of the Kumwe family: the exact decimal kernel, typed money and quantity values, converted values that always carry their rate and as-at instant, and the provider ports rate and unit extensions implement. Core ships no rate and no conversion table.

v0.1.1(today)016↑2525%Apache-2.0PHPPHP ^8.5CI passing

Since Aug 28Pushed todayCompare

[ Source](https://github.com/kumwe/conversion)[ Packagist](https://packagist.org/packages/kumwe/conversion)[ Docs](https://github.com/kumwe/conversion)[ RSS](/packages/kumwe-conversion/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Kumwe Conversion
================

[](#kumwe-conversion)

**This package says what a conversion is. Extensions say what the rate is. The App says who may ask.**

Kumwe Conversion is the money and quantity conversion contract of the [Kumwe](https://github.com/kumwe) family, extracted from [Kumwe App](https://github.com/kumwe/app) as a drop-in replacement. It bundles the exact decimal kernel, the typed money and quantity values, the converted value types, the conversion requests and converters, the pipelines, and the provider ports that rate and unit-conversion extensions implement. It ships **no rate and no conversion table of any kind** — rate sourcing is an extension concern, by decision, forever.

The rule
--------

[](#the-rule)

> **A converted amount is always marked as converted and carries its rate and its as-at instant** — everywhere it appears: screen, report, export, API response, event payload. A displayed price that silently drifts from its stored value is an audit defect, not a formatting choice.

Conversion is layered above stored exact values and never mutates them. In this package the rule is enforced by the type system: `ConvertedMoneyValue` and `ConvertedQuantityValue` are unconstructible without their rate or factor, their as-at instant, their provider identity, and their declared rounding — the constructor recomputes the arithmetic, so a figure that cannot prove its own provenance cannot exist, let alone be serialized. The full rules live in the [charter](CHARTER.md).

Who implements what
-------------------

[](#who-implements-what)

- **This package** implements the contract: `ExactDecimal` and its arithmetic, `MoneyValue`, `QuantityValue`, the converted value types with their provenance, `MoneyConversionRequest` / `UnitConversionRequest`, the converters, the pipelines, and the provider and catalog ports.
- **Extensions** implement the provider ports — `MoneyRateProvider` for exchange rates, `UnitConversionProvider` for unit factors. An external rate service, a manually administered table, a bank feed, and a contractual fixed rate are all implementations of the same port.
- **Kumwe App** (consumer #1, never owner) implements the SPI that contributes providers into an installation, the runtime catalogs the pipelines consult, the storage of exact values, and every surface that renders a converted figure with its provenance.

Status
------

[](#status)

**Extracted and published.** All twenty-three inventoried types are here — the exact decimal kernel, the value types, the conversion contract, the pipelines, and the provider ports — proven byte-for-byte against the Kumwe App originals and released on [Packagist](https://packagist.org/packages/kumwe/conversion). The remaining phase, the App consuming the package directly, is recorded in [`docs/roadmap.md`](docs/roadmap.md); the protocol with the App is in [`docs/app-agreement.md`](docs/app-agreement.md). The check lane runs:

```
composer check   # lint + documentation gate + dependency-free suite
```

License
-------

[](#license)

Licensed under the [Apache License, Version 2.0](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

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

0d ago

### Community

Maintainers

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

---

Top Contributors

[![Llewellynvdm](https://avatars.githubusercontent.com/u/5607939?v=4)](https://github.com/Llewellynvdm "Llewellynvdm (11 commits)")

### Embed Badge

![Health badge](/badges/kumwe-conversion/health.svg)

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

PHPackages © 2026

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