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

On this page you can find all versions of the php package detain/phlix-plugin-myanimelist. 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-myanimelist

phlix-plugin-myanimelist

tests

MyAnimeList metadata provider plugin for Phlix — anime titles, descriptions, episodes, ratings via the MyAnimeList API v2.

Overview

This plugin fetches structured anime metadata from MyAnimeList using the official MAL API v2 (https://api.myanimelist.net/v2):

  1. Search (GET /anime?q=...) — resolve a filename to a MAL anime ID
  2. Details (GET /anime/{id}?fields=...) — fetch titles, synopsis, episodes, rating, studio

Every request carries an X-MAL-CLIENT-ID header with your MAL client ID.

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 MyAnimeList client ID in the plugin settings form.
  6. Enable the plugin.

Getting a MAL Client ID

  1. Sign in at myanimelist.net.
  2. Go to API → Create ID.
  3. Create an app and copy the Client ID (the Client Secret is not needed for read-only metadata).

Configuration

Configure these in the Phlix admin Plugins → Configure dialog.

Setting Type Required Default Description
client_id string (secret) Yes Your MyAnimeList API Client ID, sent as the X-MAL-CLIENT-ID header.
use_ssl_verification boolean No true Verify TLS certificates when calling the MAL API.

Where to get your Client ID

Create an API application at myanimelist.net/apiconfig (App Type "web" or "other"), then copy its Client ID into client_id.

How It Works

When the MetadataManager calls lookup($filePath):

  1. Parse filename — extract anime title from file path (strips S##E##, group tags, resolution suffixes)
  2. SearchGET /anime?q=<title>&limit=10 and take the first result's ID
  3. Fetch detailsGET /anime/{id}?fields=... for full anime data
  4. Map response — translate the MAL JSON layout to MetadataManager's expected return shape

MAL API Notes

See the MAL API v2 reference for full details.

Data Returned

A no-match returns [].

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/MyanimelistMetadataProvider.php with your own implementation.
  5. Run tests: composer install && vendor/bin/phpunit.

Testing

The unit tests exercise the parse/map helpers via Reflection with fixture JSON — no live network calls are made; the HTTP paths covered by tests/Unit/MyanimelistTransportTest.php and tests/Unit/MyanimelistMetadataProviderAdapterTest.php run through anonymous \Workerman\Http\Client subclasses instead.

phpunit.xml declares a Cobertura report, so a run with a coverage driver also writes coverage.xml; .github/workflows/test.yml runs the suite on PHP 8.3 and 8.4 and uploads that file to Codacy.

License

MIT — see LICENSE.


All versions of phlix-plugin-myanimelist 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
workerman/http-client Version ^3.1
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-myanimelist contains the following files

Loading the files please wait ...