dev-master 2018-12-26 12:14 UTC

README

Math classes.

Installation

composer require mcmatters/math

Usage

<?php

declare(strict_types = 1);

use McMatters\Math\Prime;

require 'vendor/autoload.php';

$prime = new Prime();

echo $prime->next(37); // displays "41". 
echo $prime->previous(1000000); // displays "999983".