nomercy / open-subtitles
Laravel client for OpenSubtitles API
1.0.0
2020-11-07 19:35 UTC
This package is auto-updated.
Last update: 2025-03-28 08:46:51 UTC
README
Setup
Add your credentials to your .env file
OPENSUBTITLES_USERNAME=
OPENSUBTITLES_PASSWORD=
OPENSUBTITLES_DEFAULT_LANGUAGE=
OPENSUBTITLES_USERAGENT=
Usage
$client = new NoMercy\OpenSubtitles\App\Client();
$response = $client->searchSubtitles([
'sublanguageid' => 'dut',
'moviehash' => '163ce22b6261f50a',
'moviebytesize' => '2094235131',
])->toArray();
$client = new NoMercy\OpenSubtitles\App\Client();
$response = $client->searchSubtitles([[
'sublanguageid' => 'dut',
'query' => 'Young Sheldon',
'season' => '1',
'episode' => '1'
]])->toArray();