npldevfr / liquipedia-client
A PHP client for the Liquipedia v3 API
1.2.0
2024-01-30 14:34 UTC
Requires
- php: ^8.2.0
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- laravel/pint: ^1.13.7
- pestphp/pest: ^2.28.1
- phpstan/phpstan: ^1.10.50
- rector/rector: ^0.19.2
- symfony/var-dumper: ^6.4.0|^7.0.0
README
Liquipedia PHP Client
An unofficial PHP client for the Liquipedia API.
โจ Features
๐ย Easy to use
๐ฅย Supports all Liquipedia API endpoints
๐จย Custom query builder
๐งฉย Extensible
๐ย Well documented
๐งชย Tested
๐ฆ Installation
Supports PHP >= 8.2
composer require npldevfr/liquipedia-client
๐ Usage
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() );
๐ ๏ธ Development
git clone https://github.com/npldevfr/liquipedia-client
composer install
composer test