pecee/opensubtitles-php-sdk

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

1.0.0.0 2017-12-26 00:09 UTC

This package is auto-updated.

Last update: 2024-11-25 12:39:41 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());