aikyuichi / formula-xy
Formula evaluator
0.5.0
2025-07-24 01:28 UTC
Requires
- php: >=7.2
README
Formula evaluator
Usage
require_once(__DIR__ . '/vendor/autoload.php'); try { $formula = new Aikyuichi\FormulaXY\Formula('{x}-{y}*5'); $formula->setVariables([ '{x}' => 10, '{y}' => 5, ]); print($formula->getResult()); } catch (\Exception $ex) { print($ex); }
Author
Aikyuichi, aikyu.sama@gmail.com
License
FormulaXY is available under the MIT license. See the LICENSE file for more info.