aikyuichi/formula-xy

0.5.0 2025-07-24 01:28 UTC

This package is auto-updated.

Last update: 2025-07-24 01:40:33 UTC


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.