chumakovanton / calculator
Calculator string expression
v1.0.4
2019-03-03 21:27 UTC
Requires
- php: ~7.2
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: >=8.0.4
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2025-03-28 10:12:37 UTC
README
Calculator string expression.
Structure
If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.
src/
tests/
vendor/
Install
Via Composer
$ composer require chumakovanton/calculator
Usage
Sample usage
$calculator = new ChumakovAnton\Calculator\ExpressionCalculator(); echo $calculator->process('4+5*2-5+6/3');
For change implementation you need to implement ChumakovAnton\Calculator\Calculator interface
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email antosha.chumakov@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.