phpmath/bignumber
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| litipk/php-bignumbers | 0.86 | 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 | |
| simplito/bn-php | 0.85 | Arbitrary-precision math for PHP with a clean, minimal API. Provides big integer/decimal operations beyond native limits, suitable for financial calculations, cryptography, and any code needing exact large-number arithmetic and conversions. | 20 | 21 | 5 | 109K | 0 | 0.3 | 51.3 | MIT | — | |
| pear/math_biginteger | 0.84 | Pure-PHP arbitrary-precision integer library, the PEAR Math_BigInteger port. Adds, subtracts, multiplies, divides, powers, modPow, gcd, and random generation across bases, with optional GMP/BCMath acceleration. Useful for RSA, crypto, and big-number math without native extension requirements. | 22 | 22 | 13 | 53K | 0 | 0.3 | 32.8 | MIT | — | |
| fab2s/math | 0.84 | 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. | 3 | — | 1 | — | 0 | 14.7 | — | MIT | 3 months ago |
|
| php-standard-library/math | 0.84 | 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 | |
| markrogoyski/math-php | 0.83 | Math PHP is a standalone PHP library for advanced mathematics: linear algebra (matrices, vectors), statistics and probability distributions, numerical analysis, calculus, polynomials, finance, and more. It offers a clean, well-tested API for scientific and data-driven PHP applications. | 2,415 | 2,424 | 240 | 203K | 50 | 35.4 | 45.2 | MIT | 1 year ago | |
| moontoast/math | 0.83 | 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 | |
| brick/math | 0.83 | 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 | |
| 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.82 | 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 | — | — | — | |
| simplito/bigint-wrapper-php | 0.82 | Lightweight PHP wrapper for working with big integers safely beyond native limits. Provides convenient object-style operations for arithmetic, comparisons, and formatting, helping avoid overflow issues when handling large numeric IDs, counters, or financial values. | 14 | 15 | 7 | 141K | 3 | 1.2 | 55.8 | MIT | — | |
| moneyphp/money | 0.82 | Money PHP is a library for safe, precise monetary handling using value objects instead of floats. It supports string-based big integers, allocation, formatting, ISO currency repositories, and currency exchange, with BCMath and optional GMP. | 4,874 | 4,908 | 445 | 6M | 1 | 57.7 | 48.6 | MIT | 6 months ago | |
| laminas/laminas-math | 0.82 | Laminas Math provides arbitrary-precision integer arithmetic via BCMath or GMP adapters and cryptographically secure random number and string generation. A lightweight PHP utility component for applications needing reliable math and randomness primitives. | 25 | — | 19 | — | 0 | 0.3 | — | BSD-3-Clause | 1 year ago |
|
| nanasess/bcmath-polyfill | 0.82 | Pure-PHP polyfill for PHP's bcmath extension, providing bcadd, bcmul and the rest of the arbitrary-precision math functions when the native extension isn't installed. Drop-in compatibility for libraries and apps that rely on bcmath, with no server configuration changes needed. | 2 | 2 | 0 | 22K | 3 | 18.5 | 63.7 | MIT | 1 month ago |
How can I help you explore Laravel packages today?