PHPackages                             m9snikfeed/php-shikimori - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. m9snikfeed/php-shikimori

ActiveLibrary

m9snikfeed/php-shikimori
========================

API implementation for shikimori.one

13PHP

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/M9snikFeed/php-shikimori)[ Packagist](https://packagist.org/packages/m9snikfeed/php-shikimori)[ RSS](/packages/m9snikfeed-php-shikimori/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

shikimori-api-php
=================

[](#shikimori-api-php)

PHP library for Shikimori API interaction, includes OAuth 2.0 authorization and API v1-v2 methods. Full Shikimori API features documentation can be found [here](https://shikimori.one/api/doc).

1. Prerequisites
----------------

[](#1-prerequisites)

- PHP 8.1 or later

2. Installation
---------------

[](#2-installation)

Require library via composer

```
composer require m9snikfeed/php-shikimori

```

3. Initialization
-----------------

[](#3-initialization)

Create ShikimoriApiClient object using the following code:

```
$apiClient = new ShikimoriApiClient('YukiDub.Fun');
var_dump($apiClient->anime()->get(1)->getImage()->getX48());

```

The ShikimoriApiClient constructor takes the user-agent as the first parameter.

4. Authorization
----------------

[](#4-authorization)

```
$clientId = 'IWJ-6QnQi5so_dtyHswoTOwQ07YRev3UAnc7H-OVRhM';
$clientSecret = 'EwgBSXrBDChK7-YsqE8fQz86Ws_pwG3lAhUiyXXffqs';
$authCodeRedirect = 'https://localhost/auth/shikimori/callback';

$shikiOAuth = new ShikimoriOAuth('YukiDub.Fun');

///getAuthorizationToken method will return authorization URL. After passing through it and upon successful authorization, AUTH_CODE will be issued.
echo $shikiOAuth->setScopes(Scopes::user_rates, Scopes::comments)->getAuthorizationUrl($clientId, $authCodeRedirect));

$accessToken = $shikiOAuth->getAccessAndRefreshToken($authCodeRedirect, $clientSecret, $clientId, 'AUTH_CODE');
$apiClient = new ShikimoriApiClient('YukiDub.Fun');
$apiClient->setAccessToken('ACCESS_TOKEN');
var_dump($apiClient->users()->whoami($accessToken['access_token']));

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b830d3b7559fabb26f64d6ef56aa2b62ce0d27c93e07bc8374e3cd1ca9984795?d=identicon)[Katsu](/maintainers/Katsu)

---

Top Contributors

[![Okatsumo](https://avatars.githubusercontent.com/u/37457328?v=4)](https://github.com/Okatsumo "Okatsumo (12 commits)")

### Embed Badge

![Health badge](/badges/m9snikfeed-php-shikimori/health.svg)

```
[![Health](https://phpackages.com/badges/m9snikfeed-php-shikimori/health.svg)](https://phpackages.com/packages/m9snikfeed-php-shikimori)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
