fut / calculator
Fifa Ultimate Team player information calculator.
3.0.1
2014-09-27 17:28 UTC
This package is auto-updated.
Last update: 2024-10-29 04:36:22 UTC
README
You can get all id information (resource, definition, asset) for Fifa 14 Ultimate Team player based on one of it.
composer.json
require { "fut/calculator": "dev-master" }
Example: (also see example.php)
require_once __DIR__ . "/autoload.php"; // test data cristiano ronaldo $assetId = 20801; $resourceId = 1711296833; $definitionId = 100684097; // start calculator with the asset id and get the resource id $calc = new Fut\Calculator($assetId); echo $calc->getResourceId() . PHP_EOL . PHP_EOL; // init the calc without asset id, set resource id and get all information $calc = new Fut\Calculator(); $calc->setResourceId($resourceId); echo "current version: " . $calc->getCurrentVersion() . PHP_EOL; echo "asset id: " . $calc->getAssetId() . PHP_EOL; echo "resource id (version 1): " . $calc->getResourceId() . PHP_EOL; echo "definition id: " . $calc->getDefinitionId() . PHP_EOL . PHP_EOL; // same as last but only based on the definition id $calc = new Fut\Calculator(); $calc->setDefinitionId($definitionId); echo "current version: " . $calc->getCurrentVersion() . PHP_EOL; echo "asset id: " . $calc->getAssetId() . PHP_EOL; echo "resource id (version 2): " . $calc->getResourceId(2) . PHP_EOL; echo "definition id: " . $calc->getDefinitionId() . PHP_EOL . PHP_EOL;