定制 team-reflex/paladins-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

team-reflex/paladins-api

最新稳定版本:v1.2.6

Composer 安装命令:

composer require team-reflex/paladins-api

包简介

Easy access to the Hi-Rez Studios API for Paladins

README 文档

README

A simple object-oriented approach to data in the Paladins API (a game from Hi-Rez Studios).

For more information about the Paladins API, refer to the official API documentation.

Requirements

  • PHP 5.4 or greater
  • DevID and AuthKey from Hi-Rez (submit this form)

Installation

$ composer require team-reflex/paladins-api

Usage

// Create api
$api = new Reflex\Paladins\API(DEV_ID, AUTH_KEY);

// optional session caching via many providers
// see https://github.com/onoi/cache/
$api->useCache(new \Onoi\Cache\ZendCache($zendCacheThing));
$api->useCache(new \Onoi\Cache\DoctrineCache($doctrineCacheThing));
$api->useCache(new \Onoi\Cache\MediaWikiCache(wfGetCache(CACHE_ANYTHING)));

// returns objects by default
$api->preferredFormat('array');
// will now return assoc arrays

// returns english language gods and item names by default
$api->preferredLanguage('es');
// use IETF language tag to select language
// (latin america becomes es-419)

// get player info
$playerData = $api->getplayer($playerName);

// get info on silver 3 ladder in season 4
$ladderData = $api->getleagueleaderboard('Conquest5v5', 'Silver3', 4);

Laravel Cache

We have an Illuminate driver for onoi/cache found here: https://github.com/teamreflex/Onoi-Illuminate

Contributing

  1. Fork
  2. git clone
  3. composer install
  4. Hack
  5. Confirm (and write new) passing tests: vendor/bin/phpunit
  6. Submit pull request

License

Copyright 2015 Curse, Inc.

Free for you to use under LGPLv3. See LICENSE for an abundance of words.

统计信息

  • 总下载量: 7.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2016-12-21