PHP code example of npldevfr / liquipedia-client
1. Go to this page and download the library: Download npldevfr/liquipedia-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
npldevfr / liquipedia-client example snippets
use Npldevfr\Liquipedia\ConditionsBuilder;
use Npldevfr\Liquipedia\Liquipedia;
use Npldevfr\Liquipedia\Meta\Endpoint;
use Npldevfr\Liquipedia\Meta\Wiki;
$liquipediaSdk = new Liquipedia('your-api-key');
// Get the last 10 matches of Team Liquid
$matches = $liquipediaSdk->query()
->endpoint(Endpoint::MATCHES)
->wikis(Wiki::LEAGUE_OF_LEGENDS)
->rawConditions('[[opponent::Team Liquid]]')
->limit(10)
->orderBy('date', 'desc')
->get()
);