Calculator string expression.
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/
Via Composer
$ composer require chumakovanton/calculator
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
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email antosha.chumakov@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.