jikan / jikan-php
PHP client for jikan rest
Installs: 609
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 5
Forks: 10
Open Issues: 2
Requires
- php: ^8.2
- ext-json: *
- jane-php/open-api-runtime: ^7.6.1
- symfony/http-kernel: ^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.11
- jane-php/open-api-3: ^7.6.1
- php-http/guzzle7-adapter: ^1.0
- phpro/grumphp: ^1.13
- phpunit/phpunit: ^9.5
- rector/rector: ^1.0.4
- squizlabs/php_codesniffer: ^3.7
README
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.