PHP code example of ekaterina-konyaeva / otus-composer-package

1. Go to this page and download the library: Download ekaterina-konyaeva/otus-composer-package 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/ */

    

ekaterina-konyaeva / otus-composer-package example snippets



$mathOperations = new MathOperations();

$resultSum =  $mathOperations->sum(1.5,-3);
$resultSubtract =  $mathOperations->subtract(1.5,-3);
$resultMultiply =  $mathOperations->multiply(1.5,-3);
$resultDivide =  $mathOperations->divide(1.5,-3);