moontoast/math
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.
|
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 |
|
| markbaker/complex | 0.83 | PHP class library for complex number math. Create and operate on complex values with add/subtract/multiply/divide plus polar functions (theta, rho), conjugate/inverse, roots, logs, exponentials, powers, and a full set of trig and hyperbolic functions. | 1,670 | 1,670 | 11 | 12M | 1 | 10.3 | 54.1 | MIT | 5 years ago | |
| php-standard-library/math | 0.83 | 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 | |
| phpseclib/bcmath_compat | 0.83 | BCMath compatibility layer for PHP environments without the bcmath extension. Provides drop-in function replacements used by phpseclib, helping big integer and cryptography features work consistently across shared hosts, minimal installs, and varied PHP builds. | 168 | 169 | 5 | 401K | 0 | 5.3 | 46.6 | MIT | 2 years ago | |
| interop-phpobjects/polite-math | 0.83 | — | 1 | 1 | 0 | 32K | 0 | 2.4 | 55.3 | MIT | 2 years ago | |
| 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 | — | — | — | |
| lstrojny/hmmmath | 0.82 | PHP math utility package providing common numeric helpers and algorithms. Useful for calculations, statistics-like operations, and reusable math functions in Laravel or any PHP project. Lightweight, dependency-friendly, and easy to integrate into existing codebases. | 15 | 16 | 5 | 3K | 0 | 0.3 | 31.6 | — | — | |
| phpoffice/math | 0.82 | Pure-PHP library for building and converting math formulas in MathML and Office MathML (OMML). Provides classes for elements like identifiers, operators, numbers, fractions, superscripts, rows, and semantics. Requires PHP 7.1+ and XML/XMLWriter. | 33 | 32 | 5 | 2M | 0 | 1.4 | 55.3 | MIT | 1 year 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 | — | |
| hoa/math | 0.82 | Hoa\Math is a PHP library for mathematical expression evaluation, offering functions, constants, arithmetic visitors, combinatorics helpers, and random samplers. It lets applications parse and compute math expressions using extensible contexts. | 362 | 374 | 36 | 662K | 9 | 3.0 | 34.5 | — | 9 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 | |
| pear/math_biginteger | 0.82 | 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 | — | |
| nxp/math-executor | 0.82 | Safely parse and evaluate math expressions from strings in PHP. nxp/math-executor is a lightweight library with variables, functions, custom operators, and caching, ideal for calculators, dynamic pricing, and formula-driven logic in Laravel and PHP apps. | 230 | 231 | 49 | 109K | 0 | 20.6 | 42.7 | MIT | 1 month ago | |
| litipk/php-bignumbers | 0.82 | 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 | |
| zendframework/zend-math | 0.82 | Zend Math provides math utilities for PHP, including big integer/decimal support, random number generation, and statistical helpers. Part of the Zend Framework ecosystem, it offers consistent, tested components for numeric operations. | 53 | 56 | 23 | 42K | 1 | 1.6 | 28.1 | BSD-3-Clause | 7 years ago | |
| nanasess/bcmath-polyfill | 0.81 | 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 | |
| markrogoyski/math-php | 0.81 | 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 | |
| rindow/rindow-math-buffer-ffi | 0.81 | A universal one-dimensional buffer for exchanging numeric data between PHP and C/C++ through FFI, designed for math libraries. Provides fast, shared memory access for vectors and matrices across Linux, Windows, and macOS on PHP 8.1 through 8.4. | 0 | 0 | 0 | 20 | 0 | 19.2 | 21.0 | BSD-3-Clause | 2 months ago | |
| markbaker/matrix | 0.81 | PHPMatrix is a PHP matrix algebra library supporting addition, subtraction, multiplication, division, determinants, inverses, transpose, trace, solve (A·X=B), and LU/QR decompositions. Install via Composer as markbaker/matrix and use Matrix objects from arrays. | 1,518 | 1,516 | 14 | 10M | 2 | 9.9 | 53.5 | MIT | 5 years ago | |
| woohoolabs/yin | 0.81 | PSR-7–compatible PHP framework for building JSON:API servers. Provides documents, resources, hydrators, request/response validation, pagination, relationship handling, content negotiation, middleware support, and custom serialization/deserialization. | 239 | 240 | 37 | 3K | 5 | 6.4 | 12.4 | MIT | 5 years ago |
How can I help you explore Laravel packages today?