PHP code example of th3mouk / pokemongo-iv-calc

1. Go to this page and download the library: Download th3mouk/pokemongo-iv-calc 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/ */

    

th3mouk / pokemongo-iv-calc example snippets


$pokemon = (new Calculator())->calculate(
    $input->getArgument('name'),
    (int) $input->getArgument('cp'),
    (int) $input->getArgument('hp'),
    (int) $input->getArgument('dusts'),
    (int) $input->getArgument('global'),
    (int) $input->getArgument('max-stats'),
    $input->getArgument('bests'),
    (bool) $input->getOption('upgraded')
);

Helpers::dustsToMax(20.5, 20)

Helpers::candiesToMax(23, 27)

Helpers::calculateCP(238, 184, 171, 29, true)
sh
php vendor/bin/peridot tests