{"id":16410537,"url":"https://github.com/skipperbent/pecee-subscene-php-sdk","last_synced_at":"2025-09-04T16:34:18.936Z","repository":{"id":57037394,"uuid":"115419103","full_name":"skipperbent/pecee-subscene-php-sdk","owner":"skipperbent","description":"Simple, lightweight PHP-SDK for searching and downloading subtitles from Subscene.com","archived":false,"fork":false,"pushed_at":"2017-12-26T14:54:56.000Z","size":34,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-04T00:58:57.944Z","etag":null,"topics":["movie","movies","php-sdk","sdk","srt","subscene","subtitle","subtitles"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skipperbent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-26T12:10:06.000Z","updated_at":"2019-10-05T06:35:37.000Z","dependencies_parsed_at":"2022-08-24T05:51:14.655Z","dependency_job_id":null,"html_url":"https://github.com/skipperbent/pecee-subscene-php-sdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/skipperbent/pecee-subscene-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipperbent%2Fpecee-subscene-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipperbent%2Fpecee-subscene-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipperbent%2Fpecee-subscene-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipperbent%2Fpecee-subscene-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skipperbent","download_url":"https://codeload.github.com/skipperbent/pecee-subscene-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipperbent%2Fpecee-subscene-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271353975,"owners_count":24744995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["movie","movies","php-sdk","sdk","srt","subscene","subtitle","subtitles"],"created_at":"2024-10-11T06:43:13.844Z","updated_at":"2025-08-20T17:08:36.544Z","avatar_url":"https://github.com/skipperbent.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pecee/subscene-php-sdk\n\nSimple, lightweight PHP-SDK for searching and downloading subtitles from [Subscene.com](https://www.subscene.com).\n\n#### WARNING: USE WITH CAUTION!\n\nUnfortunately Subscene.com does not yet provide an official API, even though they announced one on Twitter back in 2013.\n\nThis means, that the SDK is subject to change and might not work as expected, when/if new updates are applied to their website.\n\nPlease keep that in mind before using this SDK in production.\n\n#### Credits\n\nThanks to [Subscene.com](https://www.subscene.com) for providing that awesome service!\n\nWe're still waiting for that API [you promised](https://twitter.com/subscene_com/status/367914801315340288?lang=en) :)\n\n# Installation\n\nYou can add this library to your project easily by running the following composer command in your terminal/command-line:\n\n```php\ncomposer require pecee/subscene-php-sdk\n```\n\n### Requirements\n\n- PHP 5.6 or greater\n- curl extension enabled\n\n# Usage\n\n- **[Search for subtitles](#search-for-subtitles)**\n   - [Parameters](#parameters)\n   - [Response](#response)\n\n- **[Get subtitles by movie id](#get-subtitles-by-movie-id)**\n   - [Parameters](#parameters-1)\n   - [Response](#response-1)\n\n- **[Full search](#full-search)**\n   - [Parameters](#parameters-2)\n   - [Response](#response-2)\n\n- **[Download subtitle](#download-subtitle)**\n   - [Parameters](#parameters-3)\n   - [Response](#response-3)\n\n## Search for subtitles\n\n```php\n$client = \\Pecee\\Service\\Subscene();\n$subtitles = $movie-\u003esearch('The Walk');\n```\n\n### Parameters\n\n| Name              | Type          | Default value | Description                                                                               |\n| -------------     |----------     | -----         | ---------------                                                                           |\n| `$title`          | `string`      |               | Title of the movie you want to search for.                                                |\n| `$languageIds`    | `array\\|null`  | `null`        | The language-ids you want subtitles for. Example: `dan`, `eng`, `pol` etc.                |\n\n### Response\n\n```json\n[\n   {\n      \"id\":\"the-walk\",\n      \"title\":\"The Walk\",\n      \"year\":\"2015\",\n      \"count\":\"114\",\n   }\n]\n```\n\n## Get subtitles by movie id\n\n```php\n$client = \\Pecee\\Service\\Subscene();\n$subtitles = $movie-\u003egetSubtitles('the-walk', ['dan', 'eng']);\n```\n\n### Parameters\n\n| Name              | Type          | Default value | Description                                                                               |\n| -------------     |----------     | -----         | ---------------                                                                           |\n| `$id`             | `string`      |               | Unique identifier/id for the movie you want to get the subtitles for.                     |\n| `$languageIds`    | `array\\|null`  | `null`        | The language-ids you want subtitles for. Example: `dan`, `eng`, `pol` etc.                |\n| `$multiple`       | `bool`        | `false`       | Fetch multiple subtitles per language. Can be slow depending on the number of results.    |\n\n### Response\n\n```json\n[\n   {\n      \"id\":\"the-walk\",\n      \"title\":\"The Walk\",\n      \"year\":\"2015\",\n      \"count\":\"114\",\n      \"subtitles\":[\n         {\n            \"language\":\"Danish\",\n            \"language_id\":\"dan\",\n            \"filename\":\"The-Walk-2015-720p-BluRay-x264-YIFY-[YTS.AG]\",\n            \"author\":\"Firewalker.dk\",\n            \"comment\":\"Retail Rippet og tilpasset af TeamSky uploadet af Firewalker.dk\",\n            \"download_url\":\"https:\\/\\/subscene.com\\/subtitle\\/download?mac=Hd63BOWXFRbtZJKQmd1nmRLJ9cJAYJeYQYidqyixTQ5ORYDQ72_lUCwgSWx9Vdd28ODVS7GlWY0gMzo58gDZsKDEkQf5UgrlJKf8PL_LJHxYCc6rFPaePaE7UfGlSgJL0\"\n         },\n         {\n            \"language\":\"English\",\n            \"language_id\":\"eng\",\n            \"filename\":\"Yify \\/ Superchillin\",\n            \"author\":\"japangoodtime\",\n            \"comment\":\"French speaking parts and some hard to hear English part\",\n            \"download_url\":\"https:\\/\\/subscene.com\\/subtitle\\/download?mac=YYhV9nVUcbV1K_BhkVM8E6BrGB8qmFEFX3ykn6Iz0JEwNzh2YsugBFp-18ue_eYJw3RE_fVmlHV8nQh_FLsy7r5kZIJ_Z3OTBDIfWhsj2BhhcKnFrY8jXQycuHUOuiSS0\"\n         }\n      ]\n   }\n]\n```\n\n## Full search\n\nThis method will lookup subtitles for each result. Can be extremely slow depending on the number of results.\n\n```php\n$client = \\Pecee\\Service\\Subscene();\n$subtitles = $movie-\u003esearchFull('the-walk', ['dan', 'eng']);\n```\n\n### Parameters\n\n| Name              | Type          | Default value | Description                                                                               |\n| -------------     |----------     | -----         | ---------------                                                                           |\n| `$title`          | `string`      |               | Title of the movie you want to search for.                                                |\n| `$languageIds`    | `array\\|null`  | `null`        | The language-ids you want subtitles for. Example: `dan`, `eng`, `pol` etc.                |\n| `$multiple`       | `bool`        | `false`       | Fetch multiple subtitles per language. Can be slow depending on the number of results.    |\n\n### Response:\n\n```json\n[\n   {\n      \"id\":\"the-walk\",\n      \"title\":\"The Walk\",\n      \"year\":\"2015\",\n      \"count\":\"114\",\n      \"subtitles\":[\n         {\n            \"language\":\"Danish\",\n            \"language_id\":\"dan\",\n            \"filename\":\"The-Walk-2015-720p-BluRay-x264-YIFY-[YTS.AG]\",\n            \"author\":\"Firewalker.dk\",\n            \"comment\":\"Retail Rippet og tilpasset af TeamSky uploadet af Firewalker.dk\",\n            \"download_url\":\"https:\\/\\/subscene.com\\/subtitle\\/download?mac=Hd63BOWXFRbtZJKQmd1nmRLJ9cJAYJeYQYidqyixTQ5ORYDQ72_lUCwgSWx9Vdd28ODVS7GlWY0gMzo58gDZsKDEkQf5UgrlJKf8PL_LJHxYCc6rFPaePaE7UfGlSgJL0\"\n         },\n         {\n            \"language\":\"English\",\n            \"language_id\":\"eng\",\n            \"filename\":\"Yify \\/ Superchillin\",\n            \"author\":\"japangoodtime\",\n            \"comment\":\"French speaking parts and some hard to hear English part\",\n            \"download_url\":\"https:\\/\\/subscene.com\\/subtitle\\/download?mac=YYhV9nVUcbV1K_BhkVM8E6BrGB8qmFEFX3ykn6Iz0JEwNzh2YsugBFp-18ue_eYJw3RE_fVmlHV8nQh_FLsy7r5kZIJ_Z3OTBDIfWhsj2BhhcKnFrY8jXQycuHUOuiSS0\"\n         }\n      ]\n   }\n]\n```\n\n### Download subtitle\n\nDownload subtitle from Subscene.\n\n```php\n$client = \\Pecee\\Service\\Subscene();\n$subtitles = $movie-\u003edownload('https://subscene.com/subtitle/download?mac=YYhV9nVUcbV1K_BhkVM8E6BrGB8qmFEFX3ykn6Iz0JEwNzh2YsugBFp-18ue_eYJw3RE_fVmlHV8nQh_FLsy7r5kZIJ_Z3OTBDIfWhsj2BhhcKnFrY8jXQycuHUOuiSS0');\n```\n\n#### Parameters\n\n| Name              | Type          | Default value | Description                                                                               |\n| -------------     |----------     | -----         | ---------------                                                                           |\n| `$url`            | `string`      |               | The subtitle url you've received when searching for the subtitle.                         |\n\n#### Response:\n\nYou will receive the binary output for the file.\n\n# License\n\n### The MIT License (MIT)\n\nCopyright (c) 2017 Simon Sessingø / subscene-php-sdk\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskipperbent%2Fpecee-subscene-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskipperbent%2Fpecee-subscene-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskipperbent%2Fpecee-subscene-php-sdk/lists"}