承接 aboyadzhiev/php-math-parser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aboyadzhiev/php-math-parser

最新稳定版本:2.0.0

Composer 安装命令:

composer require aboyadzhiev/php-math-parser

包简介

Simple mathematical expression parser and calculator.

README 文档

README

Simple mathematical expression parser and calculator.

Install

The recommended way to install Math is through composer.

{ "require": { "aboyadzhiev/php-math-parser": "dev-master" } }

Usage

Here is simple example of evaluating math expression

<?php $parser = new \Math\Parser(); $expression = '1 + 2 * 3 * ( 7 * 8 ) - ( 45 - 10 )'; $result = $parser->evaluate($expression); echo $result; // 302 $expression = '-2+-2*13*(7*8)-(415-0.1)'; $result = $parser->evaluate($expression); echo $result; // -1872.90 

TODO

  • Add additional translation strategy

License

MIT, see LICENSE.

统计信息

  • 总下载量: 42.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 25
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 24
  • Watchers: 4
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固