PHP code example of pecee / opensubtitles-php-sdk
1. Go to this page and download the library: Download pecee/opensubtitles-php-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pecee / opensubtitles-php-sdk example snippets
$client = Kminek\OpenSubtitles\Client::create([
'username' => 'USERNAME',
'password' => 'PASSWORD',
'useragent' => 'USERAGENT',
]);
$response = $client->searchSubtitles([
[
'sublanguageid' => 'pol',
'moviehash' => '163ce22b6261f50a',
'moviebytesize' => '2094235131',
]
]);
var_dump($response->toArray());