All Versions
48
Latest Version
Avg Release Cycle
50 days
Latest Release
483 days ago

Changelog History
Page 1

  • v0.9.2 Changes

    January 20, 2021

    ๐Ÿ› ๐Ÿ› Bug fix

    • 0๏ธโƒฃ Incorrect results could be returned when using the BCMath calculator, with a default scale set with bcscale(), on PHP >= 7.2 (#55).
  • v0.9.1 Changes

    August 19, 2020

    ๐Ÿฑ โœจ New features

    • BigInteger::not() returns the bitwise NOT value

    ๐Ÿ› ๐Ÿ› Bug fixes

    • BigInteger::toBytes() could return an incorrect binary representation for some numbers
    • The bitwise operations and(), or(), xor() on BigInteger could return an incorrect result when the GMP extension is not available
  • v0.9.0 Changes

    August 18, 2020

    ๐Ÿฑ ๐Ÿ‘Œ Improvements

    • BigNumber::of() now accepts .123 and 123. formats, both of which return a BigDecimal

    ๐Ÿ’ฅ ๐Ÿ’ฅ Breaking changes

    • ๐Ÿšš Deprecated method BigInteger::powerMod() has been removed - use modPow() instead
    • ๐Ÿšš Deprecated method BigInteger::parse() has been removed - use fromBase() instead
  • v0.8.17 Changes

    August 19, 2020

    ๐Ÿ› ๐Ÿ› Bug fix

    • BigInteger::toBytes() could return an incorrect binary representation for some numbers
    • The bitwise operations and(), or(), xor() on BigInteger could return an incorrect result when the GMP extension is not available
  • v0.8.16 Changes

    August 18, 2020

    ๐Ÿš‘ ๐Ÿš‘ Critical fix

    • ๐Ÿš€ This version reintroduces the deprecated BigInteger::parse() method, that has been removed by mistake in version 0.8.9 and should have lasted for the whole 0.8 release cycle.

    ๐Ÿ†• โœจ New features

    • BigInteger::modInverse() calculates a modular multiplicative inverse
    • BigInteger::fromBytes() creates a BigInteger from a byte string
    • BigInteger::toBytes() converts a BigInteger to a byte string
    • BigInteger::randomBits() creates a pseudo-random BigInteger of a given bit length
    • BigInteger::randomRange() creates a pseudo-random BigInteger between two bounds

    ๐Ÿ—„ ๐Ÿ’ฉ Deprecations

    • ๐Ÿ—„ BigInteger::powerMod() is now deprecated in favour of modPow()
  • v0.8.15 Changes

    April 15, 2020

    ๐Ÿ›  ๐Ÿ› Fixes

    • โž• added missing ext-json requirement, due to BigNumber implementing JsonSerializable

    โšก๏ธ Optimizations

    • โž• additional optimization in BigInteger::remainder()
  • v0.8.14 Changes

    February 18, 2020

    ๐Ÿ†• โœจ New features

    • BigInteger::getLowestSetBit() returns the index of the rightmost one bit
  • v0.8.13 Changes

    February 16, 2020

    ๐Ÿ†• โœจ New features

    • โœ… BigInteger::isEven() tests whether the number is even
    • โœ… BigInteger::isOdd() tests whether the number is odd
    • โœ… BigInteger::testBit() tests if a bit is set
    • BigInteger::getBitLength() returns the number of bits in the minimal representation of the number
  • v0.8.12 Changes

    February 03, 2020

    ๐Ÿ› ๏ธ Maintenance release

    ๐Ÿ‘ Classes are now annotated for better static analysis with psalm.

    ๐Ÿš€ This is a maintenance release: no bug fixes, no new features, no breaking changes.

  • v0.8.11 Changes

    January 23, 2020

    ๐Ÿ†• โœจ New feature

    BigInteger::powerMod() performs a power-with-modulo operation. Useful for crypto.