pecee/opensubtitles-php-sdk

Simple, lightweight PHP-SDK for accessing subtitles from OpenSubtitles.org

1.0.0.0 2017-12-26 00:09 UTC

README

PHP SDK for retrieving subtitles from OpenSubtitles.org.

Credits

Credits to kminek for his original work on this wrapper.

Usage

$client = Kminek\OpenSubtitles\Client::create([
    'username'  => 'USERNAME',
    'password'  => 'PASSWORD',
    'useragent' => 'USERAGENT',
]);

$response = $client->searchSubtitles([
    [
        'sublanguageid' => 'pol',
        'moviehash' => '163ce22b6261f50a',
        'moviebytesize' => '2094235131',
    ]
]);

var_dump($response->toArray());