Download the PHP package whallysson/money-precision without Composer
On this page you can find all versions of the php package whallysson/money-precision. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whallysson/money-precision
More information about whallysson/money-precision
Files in whallysson/money-precision
Package money-precision
Short Description A simple library for precise monetary value handling and financial calculations
License MIT
Informations about the package money-precision
MoneyPrecision
MoneyPrecision is a PHP library designed to handle monetary values with precision, ensuring accurate conversions, formatting, and arithmetic operations. With support for multiple currencies, it is ideal for applications that demand reliability in financial calculations.
🚀 Features
- Conversions between integer and decimal values while maintaining precision.
- Arithmetic operations (addition, subtraction, multiplication and division) with high accuracy.
- Comparisons between monetary values.
- Support for multiple currencies with custom formatting.
-
Intuitive and extensible API.
-
Precise Conversion:
- Integer to Decimal and vice-versa.
- Handles trailing zeros (e.g.,
5660 -> 56.60
).
-
Arithmetic Operations:
- Addition, subtraction, multiplication, and division.
- Guaranteed accuracy with
bcmath
.
-
Currency Support:
- Easily extendable for multiple currencies.
- Includes BRL, USD, and EUR by default.
-
Comparison:
- Compare monetary values using
equals
,greaterThan
, andlessThan
.
- Compare monetary values using
- Customizable Formatting:
- Flexible formatting with symbols, separators, and positioning.
🛠 Installation
Install MoneyPrecision with Composer:
or run
📖 Documentation
For detailed information and examples, visit the documentation.
📚 Usage
Basic Conversions
Arithmetic Operations
Comparisons
Currency Formatting
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Se você descobrir algum problema relacionado à segurança, envie um e-mail para [email protected] em vez de usar o rastreador de problemas.
Thank you
Credits
- Whallysson Avelino (Developer)
- Whallysson (Team)
- All Contributors (This Rock)
📝 License
The MIT License (MIT). Please see License File for more information.
All versions of money-precision with dependencies
ext-bcmath Version *