The application provides a solution for a calculator based on the reverse Polish notation (RPN). The calculator supports base arithmetic operators (+, -, *, /) and works as PHP CLI app. It can be extended with other operators: implement ArithmeticOperatorInterface and extend ALLOWED_OPERATORS_MAP respectively. The RPN algorithm itself is allocated in a separate class - RPNHandler.
$ composer install
bin/cli-calc.php
$ vendor/bin/phpunit -v -c tests/phpunit.xml
https://github.com/pkulbida/svi-coding-exercise