hugsbrugs / php-math
There is no license information available for the latest version (dev-master) of this package.
PHP Math Utilities
dev-master
2019-04-19 13:26 UTC
This package is auto-updated.
Last update: 2024-12-20 02:18:31 UTC
README
This librairy provides utilities function to ease math & stats
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 ;)