lang/equation
最新稳定版本:v0.0.2
Composer 安装命令:
composer require lang/equation
包简介
A PHP formula parser based on bc_math
README 文档
README
基于 bc_math 的 PHP 公式解析器
Install
$ composer install lang\equation
Simple examples
<?php use Lang\Equation\Equation; $expr = Equation::parse('1+1'); echo $expr->getValue(); // Output: 2 // With params // !notice parameter name format: ':param_name:' $expr2 = Equation::parse('2 + :var:'); echo $expr2->getValue(['var' => 2]); // Output: 4
License
MIT license (© 2024 Lang)
Have fun with Equation
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-15