/jikan-jikanPHP

Jikan rest api PHP client

Primary LanguagePHPMIT LicenseMIT

Latest Stable Version Total Downloads License

jikan-jikanPHP

Jikan rest api PHP client, PHP Client for the unofficial myanimelist api

Install it with composer:

composer require jikan/jikan-php

Getting Started

Instantiate the client

$jikan = new \Jikan\JikanPHP\JikanPHPClient();

Use it to request MAL data

$request = new  \JikanPHP\Request\Anime\AnimeRequest(1);
$anime = $jikan->getAnime($request);

All responses are converted to PHP classes.

Customize guzzle

$guzzle = new GuzzleHttp\Client();
// Add middlewares to the client, or configs
$jikan = new \Jikan\JikanPHP\JikanPHPClient($guzzle);
// The configured client is now used internally

Using the client should be self-explanatory since it is fully type-hinted.

If you experience any issues, open an issue, or even better a Pull Request!