Skip to content

hugsbrugs/php-math

Repository files navigation

php-math

This librairy provides utilities function to ease math & stats

Build Status Coverage Status

Install

Install package with composer

composer require hugsbrugs/php-math

In your PHP code, load library

require_once __DIR__ . '/../vendor/autoload.php';
use Hug\Math\Math as Math;

Usage

Return modulo of a number given a divider

Math::modulo($nb, $divider);

Compute Dice Coefficient for 2 given texts

Math::dice($str1 = '', $str2 = '');

Unit Tests

phpunit --bootstrap vendor/autoload.php test

Author

Hugo Maugey visit my website ;)

Releases

No releases published

Packages

No packages published

Languages