artur-stepien/wot-wn8
Composer 安装命令:
composer require artur-stepien/wot-wn8
包简介
Calculates World of Tanks WN8 using https://github.com/artur-stepien/wargaming-papi api interface
关键字:
README 文档
README
PHP class for processing World of Tanks WN8 stat value. This class uses instance of Wargaming\Api and requires to register a Wargaming Developer Application.
Sample usage
It is best to use composer manage dependencies.
<?php use Wargaming\Language\EN; use Wargaming\Server\EU; use Wargaming\Api; use Wargaming\WoT\WN8; // Include API and WN8 class require_once __DIR__.'/vendor/autoload.php'; // NOTICE: Replace YOUR_APPLICATION_ID with your application key. $language = new EN(); $server = new EU('YOUR_APPLICATION_ID'); $api = new Api($language, $server); // Test method to get WN8 of player ESL_Gorilla on EU server. try { echo 'Calculated WN8 for player [ESL_Gorilla]: '.(string)(new WN8($api, 'ESL_Gorilla')); } catch (Exception $e) { // Ups we got an error die($e->getMessage()); }
Changelog
1.3.0 - 2022-05-09
- Changed API version support to >1.4.x, NOTICE: You need to use new api instance so be sure to update your code on update!
- Changed Exceptions to RuntimeException
1.2.2 - 2022-02-07
- Updating composer.lock
- Minor code updates.
1.2 - 2019-01-06
- Fixed WN8 calculation using expected tank values from modxvm.
- Added test to assure class works as expected.
1.1 - 2015-08-20
- Added option to calculate accurate WN8. When this is enabled tanks missing in expected tank values will be removed from account summary. Notice that accurate calculation is from 25% to 35% slower because require stats for each missing tank.
- Also loading expected tank values has been moved to separate method to allow overriding.
1.0 - 2015-08-19
- Class published
artur-stepien/wot-wn8 适用场景与选型建议
artur-stepien/wot-wn8 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83 次下载、GitHub Stars 达 6, 最近一次更新时间为 2020 年 01 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wot」 「wargaming」 「world of tanks」 「wg」 「wn8」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 artur-stepien/wot-wn8 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 artur-stepien/wot-wn8 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 artur-stepien/wot-wn8 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card.
Provides a useful interface to connect and use Wargaming Public API
PHP library to calculate World Athletics (IAAF) scoring points of athletics and World Athletics (IAAF) scoring points for combined events.
The Aura Framework_Demo package provides sample 'Hello World' web and CLI demos for the Aura framework.
A database with ISO country information in all configured translations
Contao dummy frontend modules.
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-06