hugsbrugs / php-math
PHP Math Utilities
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hugsbrugs/php-math
This package is auto-updated.
Last update: 2025-09-20 04:02:44 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 ;)