pear/math_biginteger
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.
ext-gmp, ext-bcmath, or a maintained pure-PHP library such as brick/math is a better architectural fit.Math_BigInteger) often implies classmap/include-path handling rather than PSR-4. A short integration spike is required in the target Laravel/PHP version before any commitment. The only clearly defensible use case is an existing dependency that already requires it.gmp or bcmath be made mandatory? Is brick/math acceptable as a replacement? Who will own a fork or wrapper if it must stay? What autoload mechanism does the package use? Are there golden test vectors for sign, division, modulo, and large-value boundaries? What is the security/compliance position on an archived dependency?Math_BigInteger out of controllers, models, and domain code. Do not expose the package’s class names as public API.brick/math or native gmp/bcmath. If it is transitive, use composer why and prioritize replacing the parent dependency rather than adopting this package directly.gmp or bcmath. It is unsuitable for high-throughput request paths, large batch calculations, or very large operands without benchmarking. OPcache helps but does not close the native-extension gap.How can I help you explore Laravel packages today?