PHP code example of kamalo / calclib

1. Go to this page and download the library: Download kamalo/calclib 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/ */

    

kamalo / calclib example snippets

 php
$calculator = new Calculator();

//получить вычисленную сумму
$calculator->summarize(5, 7);

//получить вычисленную разность
$calculator->substract(5, 7);

//получить вычисленное произведение
$calculator->multiple(5, 7);

//получить вычисленное частное
$calculator->divide(5, 7);