https://github.com/skipperbent/pecee-opensubtitles-php-sdk
Simple, lightweight PHP-SDK for accessing subtitles from OpenSubtitles.org
https://github.com/skipperbent/pecee-opensubtitles-php-sdk
api movie movies opensubtitles php-sdk sdk srt subtitle subtitles
Last synced: 16 days ago
JSON representation
Simple, lightweight PHP-SDK for accessing subtitles from OpenSubtitles.org
- Host: GitHub
- URL: https://github.com/skipperbent/pecee-opensubtitles-php-sdk
- Owner: skipperbent
- Created: 2017-12-26T00:01:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T00:09:43.000Z (over 8 years ago)
- Last Synced: 2025-01-02T19:03:14.632Z (over 1 year ago)
- Topics: api, movie, movies, opensubtitles, php-sdk, sdk, srt, subtitle, subtitles
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pecee/opensubtitles-php-sdk
PHP SDK for retrieving subtitles from OpenSubtitles.org.
## Credits
Credits to [kminek](https://github.com/kminek/open-subtitles) for his original work on this wrapper.
## Usage
```php
$client = Kminek\OpenSubtitles\Client::create([
'username' => 'USERNAME',
'password' => 'PASSWORD',
'useragent' => 'USERAGENT',
]);
$response = $client->searchSubtitles([
[
'sublanguageid' => 'pol',
'moviehash' => '163ce22b6261f50a',
'moviebytesize' => '2094235131',
]
]);
var_dump($response->toArray());
```