PHPackages                             ecommerce-utilities/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. ecommerce-utilities/money

ActiveLibrary

ecommerce-utilities/money
=========================

1.0.0(5mo ago)0311↓100%MITPHPPHP &gt;= 8.1

Since Oct 13Pushed 5mo agoCompare

[ Source](https://github.com/ecommerce-utilities/php-money)[ Packagist](https://packagist.org/packages/ecommerce-utilities/money)[ RSS](/packages/ecommerce-utilities-money/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Money (PHP 8.1)
===============

[](#money-php-81)

A small, precise money helper class for arithmetic operations and comparisons with configurable decimal precision. Uses bcmath for deterministic decimal calculations.

- Namespace: `Ecommerce`
- PHP: 8.1+
- Requires: PHP extension `ext-bcmath`

Installation
------------

[](#installation)

```
composer require ecommerce-utilities/money
```

- Ensure the bcmath PHP extension is enabled (e.g., `sudo apt-get install php-bcmath` and restart your web server/CLI).
- Include the class in your project (e.g., via PSR-4 autoloading) and use the `Ecommerce` namespace.

Quickstart
----------

[](#quickstart)

```
