PHP code example of cyrulik / simple-calculator
1. Go to this page and download the library: Download cyrulik/simple-calculator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cyrulik / simple-calculator example snippets
use Cyrulik\SimpleCalculator\Calculator;
use Cyrulik\SimpleCalculator\OperationFactory;
$calculator = new Calculator(new OperationFactory());
$calculator->calculate('addition', 1, 2);
bash
composer fix
bash
./vendor/bin/php-cs-fixer fix
bash
composer analyse