Download the PHP package toshy/matex without Composer
On this page you can find all versions of the php package toshy/matex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor toshy
Package matex
Short Description PHP Mathematical expression parser and evaluator
License MIT
Package matex
Short Description PHP Mathematical expression parser and evaluator
License MIT
Please rate this library. Is it a good library?
Informations about the package matex
[!IMPORTANT] This is a fork of madorin/matex to work with PHP 8.4 without deprecation notices. Take into consideration that the package has changed to
toshy/matex
and has a new namespaceToshY\Matex
.
Matex
PHP Mathematical expression parser and evaluator
Features
- Fast evaluation
- Compact codebase
- Operators: + - * / ^ %
- Brackets, nested, unlimited levels
- Variables: predefined or estimated dynamically
- Functions: predefined or connected dynamically
- String arguments in functions, like field("name")
- String operations, currently concatenation is supported
Installation
Using Composer run
See manual for more details and options.
Usage
Basic:
String concatenation:
Variables:
Dynamic variables:
Functions:
Extravaganza:
See examples for code samples.
Author
Dorin Marcoci - https://www.marcodor.com
License
Matex is distributed under MIT license.
All versions of matex with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package toshy/matex contains the following files
Loading the files please wait ....