uberchel/shikimori-api

Shikimori API, searching and getting information by ID or name

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/uberchel/shikimori-api

v1.0.0 2025-07-26 04:54 UTC

This package is auto-updated.

Last update: 2025-12-26 07:08:17 UTC


README

Shikimori API, searching and getting information by ID or name
Version: 1.0.0

Requirements

  • PHP >= 7.2
  • PHP extensions: cUrl

Installation

No complicated installation, just transfer or copy the class file to your projector and install it using compose

composer require uberchel/shikimori-api

Using

<?php

use uberchel\ShikimoriAPI;

// use composer
require __DIR__ . '/vendor/autoload.php';

// not use composer
require './ShikimoriApi.php';

/* 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
    ])
);

clone the repository and install the requirements

git clone https://github.com/uberchel/shikimori-api

LICENSE

The MIT License