Skip to content
Jikan rest api PHP client
Branch: master
Clone or download
Latest commit 64b0658 Apr 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
helper Use own namespace everywhere Mar 19, 2019
metadata Update docblocks so arrays of objects are returned Apr 3, 2019
model Update docblocks so arrays of objects are returned Apr 3, 2019
request Use own namespace everywhere Mar 19, 2019
src Use own namespace everywhere Mar 19, 2019
test Update docblocks so arrays of objects are returned Apr 3, 2019
.gitignore edit requests for anime Jan 30, 2019
.travis.yml Check lowest, fixed composer issue Feb 5, 2019
LICENSE Create LICENSE Apr 6, 2019
README.md
composer.json Loosen requirements for yaml Mar 19, 2019
grumphp.yml
phpunit.xml Setup php-vcr and tests Jan 30, 2019

README.md

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!

You can’t perform that action at this time.