Download the PHP package detain/phlix-plugin-anidb without Composer

On this page you can find all versions of the php package detain/phlix-plugin-anidb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phlix-plugin-anidb

phlix-plugin-anidb

tests

AniDB metadata provider plugin for Phlix — anime titles, descriptions, episodes, ratings via UDP API and daily title dump.

Overview

This plugin fetches structured anime metadata from AniDB using:

  1. UDP API (api.anidb.net:9000) — fetch anime details, descriptions, episodes
  2. Daily title dump (anime-titles.dat.gz) — fast offline title→AID lookups without hitting the API

Features

Install

The plugin is unsigned by design. Install via the Phlix admin UI:

  1. Log in to your Phlix server as an admin user (users.is_admin = 1).
  2. Browse to /admin/plugins.
  3. Paste this URL into the Install from URL form:

  4. The server downloads and validates the manifest, runs composer install --no-dev, and stores a row in the plugins table.
  5. Configure your AniDB credentials in the plugin settings form:
    • Username: your AniDB username
    • API Password: your AniDB API password (from your AniDB profile, NOT your login password)
  6. Enable the plugin.

Configuration

Configure these in the Phlix admin Plugins → Configure dialog.

Setting Type Required Default Description
username string Yes — Your AniDB account username. Register free.
api_key string (secret) Yes — The UDP API Key (API password) set in your AniDB profile under Settings → Account → API — separate from your login password. See the AniDB API docs.
use_title_dump boolean No true Download the daily title dump for fast, offline search (reduces rate-limited API calls).
title_dump_url string No https://anidb.net/api/anime-titles.dat.gz URL to anime-titles.dat.gz; change only for a mirror. Must be https — AniDB's Cloudflare front answers plain http with 403, so an http URL silently leaves the offline index empty. A stored http://…anidb.net/… value from before 0.4.1 is migrated to https automatically.

The title-dump index is written to a writable cache directory outside the plugin tree, resolved in this order: constructor argument → cache_dir setting → the PHLIX_ANIDB_CACHE_DIR environment variable → sys_get_temp_dir().

The AniDB UDP API authenticates with your username + a separate API Key you set in your profile (not your website login password). Set the API Key under your AniDB profile → Settings → Account → API.

How It Works

The plugin registers an AnidbMetadataProviderAdapter with the host MetadataManager. When the server needs anime metadata it calls the adapter's search() or getDetails() methods (the adapter's lookup() method is also available for file-path-based lookups):

  1. search(title) — resolve an anime title to an AID using the title dump or API fallback
  2. getDetails(aid) — fetch full anime metadata by AID
  3. lookup(filePath) — extract anime name from a file path and return metadata

Internal flow (when lookup() or getDetails() is called):

  1. Fetch details — send ANIME aid=... for full anime data
  2. Fetch description — send ANIMEDESC aid=... for the full synopsis
  3. Map response — translate AniDB field layout to MetadataManager's expected return shape

Registration (onEnable()) does wiring only — the socket, title-dump download and index load are deferred to the first real lookup so plugin boot never blocks the resident Workerman worker.

AniDB Protocol Notes

See the AniDB UDP API docs for full details.

Data Returned

Fork as a Starter

This plugin is based on phlix-plugin-example. To create your own metadata provider:

  1. Fork or copy this repository.
  2. Edit plugin.json — pick a new name (must start with phlix-plugin-), bump version to 0.1.0, change entry to your FQCN.
  3. Edit composer.json — rename the package, update PSR-4 autoload prefix.
  4. Replace src/AnidbMetadataProvider.php with your own implementation.
  5. Run tests: composer install && vendor/bin/phpunit.

Testing

License

MIT — see LICENSE.


All versions of phlix-plugin-anidb with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
detain/phlix-shared Version ^0.18.0
psr/container Version ^1.1 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package detain/phlix-plugin-anidb contains the following files

Loading the files please wait ...