fut/calculator
Composer 安装命令:
composer require fut/calculator
包简介
Fifa Ultimate Team player information calculator.
README 文档
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;
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-27