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

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

phlix-plugin-opensubtitles

tests

OpenSubtitles subtitle-provider plugin for Phlix — search and download subtitles for movies and TV shows via the OpenSubtitles REST API.

What it does

This plugin integrates OpenSubtitles into the Phlix subtitle pipeline. It allows searching for subtitles by:

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 and submit:

  4. Configure your OpenSubtitles API key in the plugin settings.

Configuration

Configure these in the Phlix admin Plugins → Configure dialog.

Setting Required Secret Default Description
api_key Yes yes API key for your OpenSubtitles.com consumer (API application).
username No OpenSubtitles.com username. Raises download limits (VIP limits for VIP accounts).
password No yes OpenSubtitles.com password. Only used with the username.
language No en Default subtitle language (ISO 639-1, e.g. en, es, fr).
format No srt Preferred subtitle format (srt, sub, ass, etc.).
priority No 10 Ranking weight for this subtitle source relative to others. Lower runs first (0 = highest priority); admins can override the effective order via the server subtitle-provider priority list.

Where to get your API key

Create a consumer (API application) on OpenSubtitles.com and copy its API key: opensubtitles.com/en/consumers. Providing your account username/password as well is optional but raises your download quota.

How it works

The plugin implements the Phlix\Shared\Plugin\LifecycleInterface, Phlix\Shared\Plugin\ConfigurableInterface, and Phlix\Shared\Subtitle\SubtitleSourceInterface contracts and connects to the OpenSubtitles REST API v1:

  1. Login — registers a user agent and obtains a session token
  2. Search — queries subtitles by IMDB ID, filename, or moviehash
  3. Download — fetches the subtitle file and feeds it into Phlix's subtitle pipeline

When the account's download quota is exhausted, download() throws OpenSubtitlesQuotaExceededException (a subclass of OpenSubtitlesException) so callers can stop retrying or fall back to another provider.

API

The OpenSubtitles REST API is documented at opensubtitles.com.

License

MIT — see LICENSE.


All versions of phlix-plugin-opensubtitles 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
guzzlehttp/guzzle Version ^7.9
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-opensubtitles contains the following files

Loading the files please wait ...