Skip to content
supergrecko edited this page Apr 25, 2019 · 15 revisions

RiotQuest

RiotQuest is a modern PHP 7+ framework for the League of Legends API

The framework aims at giving you a simple way to interact with the API.

Here's a list of some of RiotQuest's features.

  • Automatic Rate Limiting: The rate limiter component prevents you from passing the rate limits - no blacklists or 429's! And of course it's automatic!
  • Automatic Caching: The framework caches every successful request - automatically!
  • Custom Collections: Every request returns an object which makes data management significantly easier!
  • Environment: Load API keys using the environment!
  • Standardized with PSR-1, PSR-2, PSR-4 & PSR-16

The entire project is licensed under the MIT License.

Getting Started

Prerequisites

The library uses Composer for class autoloading and dependency management. Here is a list of things you'll need to get started with RiotQuest.

  • PHP 7.0+
  • ext-json
  • ext-curl
  • Composer

Installation

To install RiotQuest, simply install it using Composer.

$ composer require supergrecko/riot-quest

Usage

To get you started, we've created a 3-step guide to working with the framework.

This guide should get you up and working.

Examples

Making a request to https://na1.api.riotgames.com/lol/summoner/v4/summoners/by-name/RiotSchmick?

use RiotQuest\Client;

// Bootstrap client
Client::boot();
// get data!
$summoner = Client::summoner('na')->name('RiotSchmick');

Endpoints

RiotQuest currently supports every endpoint except Tournament related ones.

Clone this wiki locally
You can’t perform that action at this time.