Skip to content
Daniel Dolejška edited this page Jul 23, 2017 · 10 revisions

Version v0.8

Build Status Test Coverage GitHub release GitHub pre release Packagist Packagist

Introduction

Welcome to Wiki for this repo!

The goal of this library is to create easy-to-use library for anyone who might need one. This is fully object oriented API wrapper for League of Legends' API. A small DataDragon API is included.

Here are some handy features:

  • Rate limit caching and limit exceeding prevention.
  • Call caching, enabling the library to re-use already fetched data within short timespan.
  • Object extensions - you can create your own extensions for any ApiObject returned by the library and use custom functions defined in these extensions.
  • StaticData linking - library can automatically link Static Data related to your request right into the returned object.
  • Custom callbacks - you can set custom function which will be called before or after the request is processed.
  • Interim mode support, you are going to be able to use the API the same way whether your key is in interim mode or not (meaning you won't need to change anything when you jump to production).
  • Objects everywhere! API calls return data in special objects.

I would be grateful for any feedback - so if you can give me any, just do it! Also feel free to send pull requests if you find anything that is worth improving!

Please, read on :)

Downloading

The easiest way to get this library is to use Composer. While having Composer installed it takes only composer require dolejska-daniel/riot-api to get the library ready!

If you are not fan of Composer, you can download whole repository in .zip archive or clone the repository using Git - git clone https://github.com/dolejska-daniel/riot-api. But in this case, you will have to create your own autoload function.