1. Go to this page and download the library: Download puritandesigns/poindexter 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/ */
use Poindexter\Interfaces\ResultInterface;
use Poindexter\Factors;
$factors = [
new Factors\Number(5),
new Factors\Add(),
new Factors\Parenthesis([
new Factors\Number(5),
new Factors\Add(),
new Factors\Parenthesis([
new Factors\Number(5),
new Factors\Add(),
new Factors\Number(5)
])
]),
new Factors\Divide(),
new Factors\Number(5)
];
$calculator = new \Poindexter\Calculator($factors, ResultInterface::INTEGER);
$calculator->calculate()->getValue();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.