Simple math expresions parser and calculator
NXP | ||
.gitignore | ||
composer.json | ||
README.md | ||
test.php |
NXP MathExecutor
Simple math expressions calculator
Sample usage:
<?php
require "vendor/autoload.php";
$calculator = new \NXP\MathExecutor();
print $calculator->execute("1 + 2 * (2 - (4+10))^2");
Install via Composer
All instructions to install here: https://packagist.org/packages/nxp/math-executor