15/03
2017
Wallogit.com
2017 © Pedro Peláez
PHP Math Utilities
This librairy provides utilities function to ease math & stats, (*1)
Install package with composer, (*3)
composer require hugsbrugs/php-math
In your PHP code, load library, (*4)
require_once __DIR__ . '/../vendor/autoload.php'; use Hug\Math\Math as Math;
Return modulo of a number given a divider, (*5)
Math::modulo($nb, $divider);
Compute Dice Coefficient for 2 given texts, (*6)
Math::dice($str1 = '', $str2 = '');
phpunit --bootstrap vendor/autoload.php test
Hugo Maugey visit my website ;), (*7)