1. Go to this page and download the library: Download uberchel/shikimori-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uberchel / shikimori-api example snippets
use uberchel\ShikimoriAPI;
// use composer
/* Get the poster. If the size is not specified in the request, the API returns an array with all sizes.
--sizes [ss, sm, md, lg] - Optional parameters.
--id - Anime ID
*/
var_dump($shiki->call('getPoster', [
'size' => 'md',
'id' => 58426
])
);
/* Search for anime by name
--list of ratings ['g', 'pg', 'pg_13', 'r', 'r_plus', 'rx']
--page, limit and rating Optional parameters.
*/
var_dump($shiki->call('searchAnime', [
'q' => 'Manga Nippon Mukashibanashi',
'page' => 1,
'limit' => 3,
'rating' => 'r'
])
);
/* Get all the data about anime
--id - Anime ID
*/
var_dump($shiki->call('getAnime', [
'id' => 58426
])
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.