Core guide
Getting started
Install the core package, make a safe evaluation, and understand where the rest of the guide fits.
One dependency. One public call.
MathPHP is designed to sit behind a form, rule editor, API, or pricing calculation. Start with the bounded core, then add the private layers only when your product needs them.
// composer require mathphp/mathphp
$total = Math::evaluate('subtotal * (1 + tax)', ['subtotal' => 42.5, 'tax' => 0.2]);