Updated on 2026-01-16 GMT+08:00

Downloading and Installing the SDK

Table 1 shows you how to install the PHP SDK.

Table 1 Installation methods

No.

Method

1

Manually downloading and installing the source code development package

Manually Downloading and Installing the Source Code Development Package

The following uses OBS PHP SDK of the latest version as an example:

  1. Download the OBS PHP SDK development package by referring to Downloading the SDK.
  2. Decompress the development package to obtain the following files: examples (the sample code), Obs (the SDK source code), composer.json (the dependency configuration file), obs-autoloader.php (the file for automatically loading PHP dependency libraries), and README.txt (the feature description file of SDK versions).
  3. In the CLI, go to the directory where the SDK is decompressed and run the composer install command to install the dependencies. A folder named vendor will be generated.
  4. (Optional) In the PhpStorm project, import the source code. Open PhpStorm, choose File > Open, and select the directory where the SDK is decompressed in Open File or Project.

After the installation, the directory structure is similar to the following:

├── examples

├── Obs

├── vendor

├── composer.json

├── obs-autoloader.php

└── README.txt