Simple integration with OpenSubtitles API to search for and download subtitles.
codebuglab/laravel-opensubtitles is a Laravel package for simple integration with opensubtitles api to search for and download subtitles..
It currently has 4 GitHub stars and 522 downloads on Packagist (latest version 1.0.1).
Install it with composer require codebuglab/laravel-opensubtitles.
Discover more Laravel packages by codebuglab
or browse all Laravel packages to compare alternatives.
Last updated
Simple integration with OpenSubtitles API to search for and download subtitles.

To install this package through composer run the following command in the terminal
composer require codebuglab/laravel-opensubtitles
You have to publish config file with this artisan command:
php artisan vendor:publish --provider="CodeBugLab\OpenSubtitles\OpenSubtitlesServiceProvider"
opensubtitles.php will be publish in config folder after that.env file like this OpenSubtitles_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.use CodeBugLab\OpenSubtitles\Facades\OpenSubtitles;
$parameters = [
'imdb_id' => "315642",
'languages' => 'en',
'type' => 'movie'
];
$opensubtitles = OpenSubtitles::subtitles()->searchForSubtitles($parameters)->toArray();
$parameters = [
'file_id' => "2712566",
'sub_format' => 'srt'
];
$srtFile = OpenSubtitles::download()->details($parameters)->getSrt();
$legacySubtitleId = "7090487";
$zipFile = OpenSubtitles::download()->getZipFileByLegacySubtitleId($legacySubtitleId);
This package is a free software distributed under the terms of the MIT license.