On this page
01 Installation02 Search03 Query builder04 Playground
Zero configurationPublic queries need no API token. OAuth can be layered on for private user actions.
A tiny typed client and fluent GraphQL query builder. Ask for exactly the anime data you need — without hand-building request plumbing every time.
$ composer config repositories.aniphp vcs https://gitlab.com/anilist1/aniphp.git
$ composer require sempoinus/aniphp:dev-mainThe repository maps AniList’s response into typed media objects. Public search works without OAuth credentials.
<?php
use AniPHP\Repository\AnimeRepository;
$anime = (new AnimeRepository())
->search('Frieren', limit: 6);
foreach ($anime as $title) {
echo $title->title->userPreferred;
}Compose variables, operations and nested fields fluently. The generated document can be sent through AnimeRepository.
This form runs AnimeRepository::search() on this server against the live AniList GraphQL API.
Run a search to see typed results.