2017 © Pedro Peláez
 

library opensubtitles

A bundle for kminek/open-subtitles

image

gpenverne/opensubtitles

A bundle for kminek/open-subtitles

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

opensubtitles

This repo provides a service for symfony3 to handle the kminek/open-subtitles client. This client allow to fetch subtitles from opensubtitles.org, (*1)

Config/Parameters

Set your parameters.yml with your custom credentials:, (*2)

parameters:
    opensubtitles.username: ~
    opensubtitles.password: ~
    opensubtitles.user_agent: OSTestUserAgentTemp

Load the bundle from your AppKernel.php file:, (*3)

$bundles = [
    new Gpenverne\OpenSubtitlesBundle\OpenSubtitlesBundle(),
    ...,
];

Use it

    $this->container->get('opensubtitles_api')->getSubtitles('A movie title');
    $this->container->get('opensubtitles_api')->getSubtitles(1234); // Search from imdbid
    $client = $this->container->get('opensubtitles_api')->getClient(); // Return the kminek/open-subtitles client

The Versions

15/01 2017

dev-master

9999999-dev

A bundle for kminek/open-subtitles

  Sources   Download

MIT

The Requires

 

api subtitles opensubtitles

15/01 2017

1.0

1.0.0.0

A bundle for kminek/open-subtitles

  Sources   Download

MIT

The Requires

 

api subtitles opensubtitles