You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 weeks ago | |
---|---|---|
docs | 3 weeks ago | |
src | 3 weeks ago | |
tests | 3 weeks ago | |
.gitattributes | 2 months ago | |
.gitignore | 2 months ago | |
.gitlab-ci.yml | 2 months ago | |
CHANGELOG.md | 3 weeks ago | |
LICENSE.md | 2 months ago | |
README.md | 1 month ago | |
TODO.md | 3 weeks ago | |
composer.json | 2 months ago | |
phpcs.xml | 2 months ago | |
phpunit.dist.xml | 2 months ago | |
psalm.xml | 2 months ago |
README.md
Arithmetic Parser for PHP
A library that can parse and interpret arithmetic expressions. It's aimed to be configurable and safe to process end user's input.
Installation
composer require 'arokettu/arithmetic-parser'
Example
<?php
\Arokettu\ArithmeticParser\Calculator::evaluate('x + y', x: 2, y: 3); // 5
Documentation
Read the full documentation here: https://sandfox.dev/php/arithmetic-parser.html
Also on Read the Docs: https://php-arithmetic-parser.readthedocs.io
Support
Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/arithmetic-parser/-/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
License
The library is available as open source under the terms of the MIT License.