PHPackages                             macocci7/php-math-integer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. macocci7/php-math-integer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

macocci7/php-math-integer
=========================

PHP Math Library of the subjects of number theory(only natural number).

1.1.6(5mo ago)117MITPHPPHP &gt;=8.1

Since Nov 7Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/macocci7/PHP-Math-Integer)[ Packagist](https://packagist.org/packages/macocci7/php-math-integer)[ RSS](/packages/macocci7-php-math-integer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (12)Used By (0)

PHP-Math-Integer
================

[](#php-math-integer)

1. Features
-----------

[](#1-features)

`PHP-Math-Integer` is a PHP library which treats the subjects of number theory (only natural number).

Available Subjects:

- basic matters of Numbers
- basic matters of Primes
- basic matters of Divisors
- basic matters of Multiples
- basic matters of Euclidean Algorithm
- basic matters of Common Fractions
- basic matters of Bezout's Identities

2. Contents
-----------

[](#2-contents)

- [1. Features](#1-features)
- 2. Contents
- [3. Requirements](#3-requirements)
- [4. Installation](#4-installation)
- [5. Usage](#5-usage)
    - [5.1. Macocci7\\PhpMathInteger\\Number](#51-macocci7phpmathintegernumber)
    - [5.2. Macocci7\\PhpMathInteger\\Prime](#52-macocci7phpmathintegerprime)
    - [5.3. Macocci7\\PhpMathInteger\\Divisor](#53-macocci7phpmathintegerdivisor)
    - [5.4. Macocci7\\PhpMathInteger\\Multiple](#54-macocci7phpmathintegermultiple)
    - [5.5. Macocci7\\PhpMathInteger\\Euclid](#55-macocci7phpmathintegereuclid)
    - [5.6. Macocci7\\PhpMathInteger\\Fraction](#56-macocci7phpmathintegerfraction)
    - [5.7. Macocci7\\PhpMathInteger\\Bezout](#57-macocci7phpmathintegerbezout)
- [6. Examples](#6-examples)
- [7. LICENSE](#7-license)

3. Requirements
---------------

[](#3-requirements)

- PHP 8.1 or later
- [Composer](https://getcomposer.org/)

4. Installation
---------------

[](#4-installation)

```
composer require macocci7/php-math-integer
```

5. Usage
--------

[](#5-usage)

- [5.1. Macocci7\\PhpMathInteger\\Number](#51-macocci7phpmathintegernumber)
- [5.2. Macocci7\\PhpMathInteger\\Prime](#52-macocci7phpmathintegerprime)
- [5.3. Macocci7\\PhpMathInteger\\Divisor](#53-macocci7phpmathintegerdivisor)
- [5.4. Macocci7\\PhpMathInteger\\Multiple](#54-macocci7phpmathintegermultiple)
- [5.5. Macocci7\\PhpMathInteger\\Euclid](#55-macocci7phpmathintegereuclid)
- [5.6. Macocci7\\PhpMathInteger\\Fraction](#56-macocci7phpmathintegerfraction)
- [5.7. Macocci7\\PhpMathInteger\\Bezout](#57-macocci7phpmathintegerbezout)

### 5.1. Macocci7\\PhpMathInteger\\Number

[](#51-macocci7phpmathintegernumber)

This class treats basic matters of numbers.

- PHP:

    ```
