Libary for a-calc-test
The preferred way to install this extension is through composer.
php composer require --prefer-dist jakharbek/lib-a-calc-test "dev-master"
to the require section of your
This library retrieves data from a file for combing over each line a certain arithmetic operation and writing the result into a separate file.
$service = new CalculatorService(); $dto = new CalculateFileDTO(); $dto->file = 'test/test.txt'; $dto->operation = "+"; $dto->savePath= 'test/'; $files = $service->calculateFile($dto);
src classes/ contains classes dto/ contains dto (data transfer objects) exceptions/ contains exceptions helpers/ contains helpers interfaces/ contains interfaces services/ contains services