Login   Register  
PHP Classes
elePHPant
Icontem

PHP Math Expression Evaluator: Parse and evaluate strings with math expressions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Alexander Kiryukhin
Name: Alexander Kiryukhin <contact>
Classes: 2 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 272869 in Russian Federation Russian Federation
Week rank: 1076 Up34 in Russian Federation Russian Federation Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can parse and evaluate strings with math expressions.

It can take a string with a math expression and evaluates it by computing the result of operations.

The class can be extended to handle new operations by specifying the operator symbol, priority of the operation and a callback function that will be used to evaluate the result of the operation.

  Classes of Alexander Kiryukhin  >  PHP Math Expression Evaluator  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Math Expression Evaluator
Base name: math-executor
Description: Parse and evaluate strings with math expressions
Version: 0.1
PHP version: 5.4
License: GNU General Public License (GPL)
All time users: 332 users
All time rank: 6313
Week users: 1 user
Week rank: 1420 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Math Math related classes. View top rated classes


  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageNXP (1 file, 2 directories)

  Files folder image Files  /  src  /  NXP  
File Role Description
Files folder imageClasses (3 files, 1 directory)
Files folder imageException (7 files)
  Plain text file MathExecutor.php Class Class source

  Files folder image Files  /  src  /  NXP  /  Classes  
File Role Description
Files folder imageToken (16 files)
  Plain text file Calculator.php Class Class source
  Plain text file Lexer.php Class Class source
  Plain text file TokenFactory.php Class Class source

  Files folder image Files  /  src  /  NXP  /  Classes  /  Token  
File Role Description
  Plain text file AbstractContainerToken.php Class Class source
  Plain text file AbstractOperator.php Class Class source
  Plain text file InterfaceFunction.php Class Class source
  Plain text file InterfaceOperator.php Class Class source
  Plain text file InterfaceToken.php Class Class source
  Plain text file TokenComma.php Class Class source
  Plain text file TokenDegree.php Class Class source
  Plain text file TokenDivision.php Class Class source
  Plain text file TokenFunction.php Class Class source
  Plain text file TokenLeftBracket.php Class Class source
  Plain text file TokenMinus.php Class Class source
  Plain text file TokenMultiply.php Class Class source
  Plain text file TokenNumber.php Class Class source
  Plain text file TokenPlus.php Class Class source
  Plain text file TokenRightBracket.php Class Class source
  Plain text file TokenVariable.php Class Class source

  Files folder image Files  /  src  /  NXP  /  Exception  
File Role Description
  Plain text file IncorrectBracketsException.php Class Class source
  Plain text file IncorrectExpressionException.php Class Class source
  Plain text file MathExecutorException.php Class Class source
  Plain text file UnknownFunctionException.php Class Class source
  Plain text file UnknownOperatorException.php Class Class source
  Plain text file UnknownTokenException.php Class Class source
  Plain text file UnknownVariableException.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file bootstrap.php Test Unit test script
  Accessible without login Plain text file MathTest.php Test Unit test script

Install with Composer Install with Composer - Download Download all files: math-executor.tar.gz math-executor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.