fab2s/math
fab2s/math is an object-oriented PHP math library for arbitrary-precision arithmetic. It provides immutable number objects, fluent operations, comparisons, and conversions, making reliable integer and decimal calculations easier across PHP applications.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpmath/bignumber | 0.83 | Arbitrary-precision arithmetic for PHP. phpmath/bignumber provides a BigNumber class for very large integers and high-precision decimals, with basic math operations, comparisons, rounding, and formatting beyond native integer and float limits. | 5 | — | 3 | — | 0 | 0.1 | — | MIT | 10 years ago |
|
| brick/math | 0.82 | brick/math is a PHP library for arbitrary precision arithmetic. It provides BigInteger, BigDecimal, BigRational, and BigNumber classes, automatically using GMP or BCMath when available for fast, exact calculations. | 2,180 | 2,182 | 102 | 16M | 0 | 43.5 | 61.7 | MIT | 1 month ago | |
| code-distortion/realnum | 0.82 | RealNum gives PHP arbitrary-precision real numbers, avoiding floating-point rounding errors. Do accurate arithmetic, comparisons and formatting with a simple, fluent API—ideal for prices, measurements and any calculation where precision matters. | 1 | 1 | 0 | 15 | 0 | 0.0 | 12.8 | MIT | 1 year ago | |
| php-standard-library/math | 0.82 | Strictly typed math utilities for PHP with predictable, consistent error handling. Part of the PHP Standard Library project, providing reliable mathematical functions and a stable developer experience for safer numeric operations. | 1 | 1 | 0 | 20K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| php-decimal/php-decimal | 0.82 | Reference Composer package for the PHP Decimal extension. Adds an implicit ext-decimal dependency, IDE stubs, and semantic versioning so you can require decimal support in your project with composer require php-decimal/php-decimal. | 76 | 78 | 3 | 30K | 2 | 0.9 | 35.7 | MIT | — | |
| zdenekdrahos/bn-php | 0.81 | PHP library for working with Bangla/Bengali numbers and formatting. Convert between Bengali and Latin numerals, handle digit transformations, and support localization-friendly numeric output for apps needing Bangla numeral representation. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| litipk/php-bignumbers | 0.81 | Arbitrary-precision arithmetic for PHP with immutable BigInteger and BigDecimal classes. Perform exact integer and decimal math, comparisons, rounding, and conversions without floating-point precision loss—ideal for money, scientific, and large-number calculations. | 129 | 133 | 28 | 12K | 16 | 3.5 | 24.0 | MIT | 9 years ago | |
| brick/money | 0.80 | Brick\Money is a PHP library offering immutable Money and Currency classes with exact arithmetic and explicit rounding control, avoiding floating-point errors. Built on brick/math, it handles any amount size. Requires PHP 8.2+; GMP or BCMath recommended for speed. | 1,938 | 1,954 | 121 | 2M | 5 | 44.4 | 50.7 | MIT | 1 month ago | |
| moontoast/math | 0.80 | PHP math utilities for Laravel and general use, offering convenient helpers for precise calculations, percentages, rounding, and numeric formatting. Lightweight and easy to integrate into apps where consistent arithmetic and number handling matter. | 456 | 365 | 7 | 137K | 1 | 2.3 | 24.1 | Apache-2.0 | 6 years ago |
How can I help you explore Laravel packages today?