2017 © Pedro Peláez
 

library ivcalculator

Find the possible IVs of a Pokémon.

image

kostaspt/ivcalculator

Find the possible IVs of a Pokémon.

  • Saturday, September 17, 2016
  • by kostaspt
  • Repository
  • 2 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

IV Calculator

Latest Version on Packagist Build Status StyleCI SensioLabsInsight Quality Score, (*1)

Find the possible IVs of a Pokémon., (*2)

Installation

You can install this package via composer using:, (*3)

$ composer require kostaspt/ivcalculator

Usage

<?php

require_once 'vendor/autoload.php';

$ivCalculator = new IVCalculator\IVCalculator();

// Pokemon, CP, HP, Stardust needed for power up, Was powered up before?
$results = $ivCalculator->evaluate('Dragonite', 3280, 149, 9000, false);

var_dump($results->toArray());

/*
    Outputs:

    array:4 [
        "id" => 149
        "name" => "Dragonite"
        "perfection" => array:3 [
            "max" => 0.62
            "min" => 0.8
            "average" => 0.73
        ]
        "ivs" => array:5 [
            4 => IVCalculator\Entities\IV {#56
                +attackIV: 13
                +defenseIV: 6
                +staminaIV: 9
                +level: 76
                +perfection: 0.62
            }
            1 => IVCalculator\Entities\IV {#59
                +attackIV: 15
                +defenseIV: 8
                +staminaIV: 10
                +level: 74
                +perfection: 0.73
            }
            3 => IVCalculator\Entities\IV {#57
                +attackIV: 9
                +defenseIV: 15
                +staminaIV: 10
                +level: 75
                +perfection: 0.75
            }
            2 => IVCalculator\Entities\IV {#58
                +attackIV: 12
                +defenseIV: 12
                +staminaIV: 11
                +level: 74
                +perfection: 0.77
            }
            0 => IVCalculator\Entities\IV {#60
                +attackIV: 15
                +defenseIV: 9
                +staminaIV: 12
                +level: 73
                +perfection: 0.8
            }
        ]
    ]
 */

The $results variable is a Collection, so you can use it like this:, (*4)

echo $results->get('name');

// Outputs: Dragonite

or, (*5)

echo $results->get('perfection')->get('average');

// Outputs: 0.73

or, (*6)

$highestIV = $results->get('ivs')->last();

echo $highestIV->perfection;

// Outputs: 0.8

Usage (Command Line)

You can install this package via composer globally using:, (*7)

$ composer require global kostaspt/ivcalculator

Then, just run:, (*8)

$ ivcalculator analyze 'Dragonite' 3280 149 9000

, (*9)

Credit

Heavily inspired by andromedado/pokemon-go-iv-calculator, (*10)

The Versions

17/09 2016

dev-master

9999999-dev

Find the possible IVs of a Pokémon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantinos Pittas

pokemon pokemon go iv iv calculator pokemon go iv

17/09 2016

0.2.0

0.2.0.0

Find the possible IVs of a Pokémon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantinos Pittas

pokemon pokemon go iv iv calculator pokemon go iv

30/08 2016

0.1.1

0.1.1.0

Find the possible IVs of a Pokémon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantinos Pittas

pokemon pokemon go iv iv calculator pokemon go iv

20/08 2016

0.1.0

0.1.0.0

Find the possible IVs of a Pokémon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantinos Pittas

pokemon pokemon go iv iv calculator pokemon go iv