NateShoffner / jikan-jikanPHP

Jikan rest api PHP client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

Jikan rest api PHP client

License:MIT License


Languages

Language:PHP 100.0%