Download the PHP package hsnfirdaus/subscene-sdk without Composer

On this page you can find all versions of the php package hsnfirdaus/subscene-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package subscene-sdk

Subscene SDK

A php library to getting the subtitle data and files from subscene.com website with smart filter.

Installation

Using Composer

It's recomended to install this library by Composer :

or you can just manually download this repository as zip and extract to your project directory.

Notice

If you are using the V1 of this library, please read the (README.v1.md)

Usage

Calling Class

To begin, just require the autoloader of composer :

or if you download this script manually, require the /src/Subscene.php file :

then you just call the Subscene class like this :

Getting Result

This class support to get result as Array or JSON. Just call getArray() method or getJSON() method. All method will response three object/array : type,info, and result.

Error Handling

You can use try{ } catch() { } Exception to handling error. Exception Name Description
CURLError Something wrong with cURL
PageStructurError Cannot match content from cURL Result, maybe subscene page structure has been changed.
FunctionError Error when running method, maybe you wrong call the method.

List Of Method

Parameters

Parameter Type Default Value Details
$query string null The title for movie/series that you want to search.

Example Response

Example response :

listSubtitle

This method is using to listing subtitle from specific permalink.

Example Request

Parameters

Parameter Type Default Value Details
$permalink string null The permalink of page that you will looking for list subtitle.

Example Response

Example response :

getSubtitle

This method is using to generate download link and information of specific subtitle.

Example Request

Parameters

Parameter Type Default Value Details
$permalink string null The permalink of page that you will get the subtitle.
$lang_code string null The language code of subtitle.
$id integer null The id of subtitle.

Example Response

Example response :

smartFilterSeries

This method is using to smart filtering result from listSubtitle, to get episode from specific release from tv series.

Example Request

Parameters

Parameter Type Default Value Details
$language string english The language code/name that you will looking for (example : english).
$primary_type array ['hdtv'] Primary subtitle type (example : ['amzn','web','hdtv']).
$option array null Optional Option :
season : Season number of series, default will getting season from title.
start_episode : Start episode that will looking for, default : 1.
end_episode : End episode that will looking for, default is loop until end.
hearing_impaired : Is looking for hi subtitle? set true or false, default : false.

Example Response

Example :

Response :

smartDownloadSeries

This method is try to download and unzip subtitle from smartFilterSeries result.

Example Request

Parameters

Parameter Type Default Value Details
$folder_target string __DIR__.'/../../../../ The target folder that downloaded srt subtitle will saved.
$name_format string Rename subtitle to this string, example : 'NCIS - S%sE%s'

Example Response

Example :

Response :


All versions of subscene-sdk with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hsnfirdaus/subscene-sdk contains the following files

Loading the files please wait ....