PHPackages                             pecee/subscene-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. pecee/subscene-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

pecee/subscene-php-sdk
======================

Simple, lightweight PHP-SDK for searching and downloading subtitles from Subscene.com

1.0.0.1(8y ago)31131[1 issues](https://github.com/skipperbent/pecee-subscene-php-sdk/issues)MITPHP

Since Dec 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/skipperbent/pecee-subscene-php-sdk)[ Packagist](https://packagist.org/packages/pecee/subscene-php-sdk)[ Docs](https://github.com/skipperbent/pecee-subscene-php-sdk)[ RSS](/packages/pecee-subscene-php-sdk/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

pecee/subscene-php-sdk
======================

[](#peceesubscene-php-sdk)

Simple, lightweight PHP-SDK for searching and downloading subtitles from [Subscene.com](https://www.subscene.com).

#### WARNING: USE WITH CAUTION!

[](#warning-use-with-caution)

Unfortunately Subscene.com does not yet provide an official API, even though they announced one on Twitter back in 2013.

This means, that the SDK is subject to change and might not work as expected, when/if new updates are applied to their website.

Please keep that in mind before using this SDK in production.

#### Credits

[](#credits)

Thanks to [Subscene.com](https://www.subscene.com) for providing that awesome service!

We're still waiting for that API [you promised](https://twitter.com/subscene_com/status/367914801315340288?lang=en) :)

Installation
============

[](#installation)

You can add this library to your project easily by running the following composer command in your terminal/command-line:

```
composer require pecee/subscene-php-sdk
```

### Requirements

[](#requirements)

- PHP 5.6 or greater
- curl extension enabled

Usage
=====

[](#usage)

- **[Search for subtitles](#search-for-subtitles)**

    - [Parameters](#parameters)
    - [Response](#response)
- **[Get subtitles by movie id](#get-subtitles-by-movie-id)**

    - [Parameters](#parameters-1)
    - [Response](#response-1)
- **[Full search](#full-search)**

    - [Parameters](#parameters-2)
    - [Response](#response-2)
- **[Download subtitle](#download-subtitle)**

    - [Parameters](#parameters-3)
    - [Response](#response-3)

Search for subtitles
--------------------

[](#search-for-subtitles)

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

### Parameters

[](#parameters)

NameTypeDefault valueDescription`$title``string`Title of the movie you want to search for.`$languageIds``array|null``null`The language-ids you want subtitles for. Example: `dan`, `eng`, `pol` etc.### Response

[](#response)

```
[
   {
      "id":"the-walk",
      "title":"The Walk",
      "year":"2015",
      "count":"114",
   }
]
```

Get subtitles by movie id
-------------------------

[](#get-subtitles-by-movie-id)

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

### Parameters

[](#parameters-1)

NameTypeDefault valueDescription`$id``string`Unique identifier/id for the movie you want to get the subtitles for.`$languageIds``array|null``null`The language-ids you want subtitles for. Example: `dan`, `eng`, `pol` etc.`$multiple``bool``false`Fetch multiple subtitles per language. Can be slow depending on the number of results.### Response

[](#response-1)

```
[
   {
      "id":"the-walk",
      "title":"The Walk",
      "year":"2015",
      "count":"114",
      "subtitles":[
         {
            "language":"Danish",
            "language_id":"dan",
            "filename":"The-Walk-2015-720p-BluRay-x264-YIFY-[YTS.AG]",
            "author":"Firewalker.dk",
            "comment":"Retail Rippet og tilpasset af TeamSky uploadet af Firewalker.dk",
            "download_url":"https:\/\/subscene.com\/subtitle\/download?mac=Hd63BOWXFRbtZJKQmd1nmRLJ9cJAYJeYQYidqyixTQ5ORYDQ72_lUCwgSWx9Vdd28ODVS7GlWY0gMzo58gDZsKDEkQf5UgrlJKf8PL_LJHxYCc6rFPaePaE7UfGlSgJL0"
         },
         {
            "language":"English",
            "language_id":"eng",
            "filename":"Yify \/ Superchillin",
            "author":"japangoodtime",
            "comment":"French speaking parts and some hard to hear English part",
            "download_url":"https:\/\/subscene.com\/subtitle\/download?mac=YYhV9nVUcbV1K_BhkVM8E6BrGB8qmFEFX3ykn6Iz0JEwNzh2YsugBFp-18ue_eYJw3RE_fVmlHV8nQh_FLsy7r5kZIJ_Z3OTBDIfWhsj2BhhcKnFrY8jXQycuHUOuiSS0"
         }
      ]
   }
]
```

Full search
-----------

[](#full-search)

This method will lookup subtitles for each result. Can be extremely slow depending on the number of results.

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

### Parameters

[](#parameters-2)

NameTypeDefault valueDescription`$title``string`Title of the movie you want to search for.`$languageIds``array|null``null`The language-ids you want subtitles for. Example: `dan`, `eng`, `pol` etc.`$multiple``bool``false`Fetch multiple subtitles per language. Can be slow depending on the number of results.### Response:

[](#response-2)

```
[
   {
      "id":"the-walk",
      "title":"The Walk",
      "year":"2015",
      "count":"114",
      "subtitles":[
         {
            "language":"Danish",
            "language_id":"dan",
            "filename":"The-Walk-2015-720p-BluRay-x264-YIFY-[YTS.AG]",
            "author":"Firewalker.dk",
            "comment":"Retail Rippet og tilpasset af TeamSky uploadet af Firewalker.dk",
            "download_url":"https:\/\/subscene.com\/subtitle\/download?mac=Hd63BOWXFRbtZJKQmd1nmRLJ9cJAYJeYQYidqyixTQ5ORYDQ72_lUCwgSWx9Vdd28ODVS7GlWY0gMzo58gDZsKDEkQf5UgrlJKf8PL_LJHxYCc6rFPaePaE7UfGlSgJL0"
         },
         {
            "language":"English",
            "language_id":"eng",
            "filename":"Yify \/ Superchillin",
            "author":"japangoodtime",
            "comment":"French speaking parts and some hard to hear English part",
            "download_url":"https:\/\/subscene.com\/subtitle\/download?mac=YYhV9nVUcbV1K_BhkVM8E6BrGB8qmFEFX3ykn6Iz0JEwNzh2YsugBFp-18ue_eYJw3RE_fVmlHV8nQh_FLsy7r5kZIJ_Z3OTBDIfWhsj2BhhcKnFrY8jXQycuHUOuiSS0"
         }
      ]
   }
]
```

### Download subtitle

[](#download-subtitle)

Download subtitle from Subscene.

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

#### Parameters

[](#parameters-3)

NameTypeDefault valueDescription`$url``string`The subtitle url you've received when searching for the subtitle.#### Response:

[](#response-3)

You will receive the binary output for the file.

License
=======

[](#license)

### The MIT License (MIT)

[](#the-mit-license-mit)

Copyright (c) 2017 Simon Sessingø / subscene-php-sdk

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dab716ac4ac16ea3e01400efe43853b43821b33b8c601c2c772689d58cebf3c?d=identicon)[sessingo](/maintainers/sessingo)

---

Top Contributors

[![skipperbent](https://avatars.githubusercontent.com/u/634762?v=4)](https://github.com/skipperbent "skipperbent (14 commits)")

---

Tags

moviemoviesphp-sdksdksrtsubscenesubtitlesubtitlesapiclientsdkresthttp clientmoviesmoviesubtitlessubtitlesubscenesubscene.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pecee-subscene-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/pecee-subscene-php-sdk/health.svg)](https://phpackages.com/packages/pecee-subscene-php-sdk)
```

###  Alternatives

[artesaos/laravel-linkedin

Linkedin API integration for Laravel and Lumen 5

5666.5k](/packages/artesaos-laravel-linkedin)[cristianpontes/zoho-crm-client-php

Provides a clean readable PHP API to the Zoho Rest API

5354.2k](/packages/cristianpontes-zoho-crm-client-php)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.5k](/packages/ismaeltoe-osms)[repat/plentymarkets-rest-client

REST Client for Plentymarkets

1310.4k](/packages/repat-plentymarkets-rest-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
