Downloading and Installing the SDK
Table 1 shows you how to install the PHP SDK.
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:
- Download the OBS PHP SDK development package by referring to Downloading the SDK.
- 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).
- 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.
- (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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
