https://github.com/janvernieuwe/jikan-jikanphp
Jikan rest api PHP client
https://github.com/janvernieuwe/jikan-jikanphp
api-client jikan myanimelist php
Last synced: about 1 year ago
JSON representation
Jikan rest api PHP client
- Host: GitHub
- URL: https://github.com/janvernieuwe/jikan-jikanphp
- Owner: janvernieuwe
- License: mit
- Created: 2019-01-28T23:39:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T13:39:33.000Z (about 2 years ago)
- Last Synced: 2025-04-06T13:09:39.741Z (about 1 year ago)
- Topics: api-client, jikan, myanimelist, php
- Language: PHP
- Size: 590 KB
- Stars: 27
- Watchers: 4
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/jikan/jikan-php)
[](https://packagist.org/packages/jikan/jikan-php)
[](https://packagist.org/packages/jikan/jikan-php)
# jikan-jikanPHP
[Jikan rest](https://github.com/jikan-me/jikan) 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
```sh
composer require php-http/guzzle7-adapter
```
For more clients & adapters check https://docs.php-http.org/en/latest/clients.html
## Instantiate the client
```php
$jikan = Client::create();
```
## Use it to request MAL data
Check the client for the correct type hint
```php
/** @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:
```shell
composer update-jikan
```
Then make a PR to merge it into the master branch.