https://github.com/arokettu/arithmetic-parser
Configurable arithmetic parser and interpreter for PHP
https://github.com/arokettu/arithmetic-parser
arithmetic math maths parser
Last synced: about 1 year ago
JSON representation
Configurable arithmetic parser and interpreter for PHP
- Host: GitHub
- URL: https://github.com/arokettu/arithmetic-parser
- Owner: arokettu
- License: mit
- Created: 2023-02-09T10:40:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T02:28:01.000Z (over 1 year ago)
- Last Synced: 2025-04-13T20:08:46.831Z (about 1 year ago)
- Topics: arithmetic, math, maths, parser
- Language: PHP
- Homepage:
- Size: 136 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Arithmetic Parser for PHP
[![Packagist]][Packagist Link]
[![PHP]][Packagist Link]
[![License]][License Link]
[![Gitlab CI]][Gitlab CI Link]
[![Codecov]][Codecov Link]
[Packagist]: https://img.shields.io/packagist/v/arokettu/arithmetic-parser.svg?style=flat-square
[PHP]: https://img.shields.io/packagist/php-v/arokettu/arithmetic-parser.svg?style=flat-square
[License]: https://img.shields.io/github/license/arokettu/arithmetic-parser.svg?style=flat-square
[Gitlab CI]: https://img.shields.io/gitlab/pipeline/sandfox/arithmetic-parser/master.svg?style=flat-square
[Codecov]: https://img.shields.io/codecov/c/gl/sandfox/arithmetic-parser?style=flat-square
[Packagist Link]: https://packagist.org/packages/arokettu/arithmetic-parser
[License Link]: LICENSE.md
[Gitlab CI Link]: https://gitlab.com/sandfox/arithmetic-parser/-/pipelines
[Codecov Link]: https://codecov.io/gl/sandfox/arithmetic-parser/
A library that can parse and interpret arithmetic expressions.
It's aimed to be configurable and safe to process end user's input.
## Installation
```bash
composer require 'arokettu/arithmetic-parser'
```
## Example
```php
Also on Read the Docs:
## Support
Please file issues on our main repo at GitLab:
Feel free to ask any questions in our room on Gitter:
## License
The library is available as open source under the terms of the [MIT License][License Link].