PHP code example of pecee / subscene-php-sdk

1. Go to this page and download the library: Download pecee/subscene-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 / subscene-php-sdk example snippets


composer 

$client = \Pecee\Service\Subscene();
$subtitles = $movie->search('The Walk');

$client = \Pecee\Service\Subscene();
$subtitles = $movie->getSubtitles('the-walk', ['dan', 'eng']);

$client = \Pecee\Service\Subscene();
$subtitles = $movie->searchFull('the-walk', ['dan', 'eng']);

$client = \Pecee\Service\Subscene();
$subtitles = $movie->download('https://subscene.com/subtitle/download?mac=YYhV9nVUcbV1K_BhkVM8E6BrGB8qmFEFX3ykn6Iz0JEwNzh2YsugBFp-18ue_eYJw3RE_fVmlHV8nQh_FLsy7r5kZIJ_Z3OTBDIfWhsj2BhhcKnFrY8jXQycuHUOuiSS0');