Core feature

PHP API & integration

Install the core package, evaluate safely, and add instrumentation without coupling your application to internals.

← All documentation

One public facade.

Keep your integration small: install through Composer, call Math::evaluate(), and catch MathException. The observer seam is available when a separate explaining or telemetry layer needs evaluation events.

// composer require mathphp/mathphp
$result = Math::evaluate('2 * (3 + 4)');
Open playground ↗