Skip to content

janvernieuwe/jikan-jikanPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads License

jikan-jikanPHP

Jikan rest api PHP client, PHP Client for the unofficial myanimelist api, generated using janePHP.

Install it with composer:

composer require jikan/jikan-php

Getting Started

Require your client implementation

For example

 composer require php-http/guzzle7-adapter

For more clients & adapters check https://docs.php-http.org/en/latest/clients.html

Instantiate the client

$jikan = Client::create();

Use it to request MAL data

Check the client for the correct type hint

/** @var AnimeIdGetResponse200 $response */
$response = $jikan->getAnimeById(5114);
$anime = $response->getData();

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

Contribute

Has jikan been updated? You can update the client by using this command:

composer update-jikan

Then make a PR to merge it into the master branch.