2017 © Pedro Peláez
 

library biginteger

A PHP library to work with big integers.

image

phpmath/biginteger

A PHP library to work with big integers.

  • Friday, November 10, 2017
  • by waltertamboer
  • Repository
  • 2 Watchers
  • 9 Stars
  • 319 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 5 Versions
  • 138 % Grown

The README.md

biginteger

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A PHP library to work with big integers. This library makes use of the GMP extension to do its calculations., (*2)

Install

Via Composer, (*3)

``` bash $ composer require phpmath/biginteger, (*4)


## Usage ``` php use PHP\Math\BigInteger\BigInteger; $number = new BigInteger('8273467836243255543265432745');

Features

This library supports the following operations:, (*5)

  • Basic operations such as add, divide, multiply and subtract.
  • Performing modulo operations.
  • Calculate the square root and power of values.
  • Negate numbers
  • Make numbers absolute.
  • Compare numbers

Beside these operations it's also possible to make the object mutable or immutable. Performing operations on an immutable number results in the function returning a new instance., (*6)

Change log

Please see CHANGELOG for more information what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*9)

Security

If you discover any security related issues, please create an issue in the issue tracker., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

10/11 2017

dev-master

9999999-dev https://github.com/phpmath/biginteger

A PHP library to work with big integers.

  Sources   Download

MIT

The Requires

  • php ~7.0
  • ext-gmp *

 

The Development Requires

math biginteger php7 integer phpmath

10/11 2017

2.1.0

2.1.0.0 https://github.com/phpmath/biginteger

A PHP library to work with big integers.

  Sources   Download

MIT

The Requires

  • php ~7.0
  • ext-gmp *

 

The Development Requires

math biginteger php7 integer phpmath

06/03 2017

2.0.1

2.0.1.0 https://github.com/phpmath/biginteger

A PHP library to work with big integers.

  Sources   Download

MIT

The Requires

  • php ~7.0
  • ext-gmp *

 

The Development Requires

math biginteger php7 integer phpmath

14/11 2016

2.0.0

2.0.0.0 https://github.com/phpmath/biginteger

A PHP library to work with big integers.

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

math biginteger php7 integer phpmath

18/04 2016

1.0.0

1.0.0.0

A PHP library to work with big integers.

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-gmp *

 

The Development Requires

math biginteger integer