uberchel/shikimori-api
最新稳定版本:v1.0.0
Composer 安装命令:
composer require uberchel/shikimori-api
包简介
Shikimori API, searching and getting information by ID or name
README 文档
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
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-26