百度智能云

All Product Document

          Elastic IP

          SDK Installation

          Runtime Environment

          The PHP SDK package requires an operating environment of at least PHP 5.3.2.

          Install SDK

          1.Download tool kit (ZIP kit) in Official Website. 2.There are the following files after decompressing ZIP kit.

          BaiduBce.phar			//PHP SDK

          3.Add the following code to the script file and you can use the SDK package.

          include 'BaiduBce.phar';
           require 'YourConf.php';

          SDK's Directory Structure

          BaiduBce.phar
          ├──src
          │   └── BaiduBce
          │       ├── Auth                 //BCE signature related 
          │       ├── Exception            //BCE client exception 
          │       ├── Http                 //BCE Http communication related 
          │       ├── Log                  //BCE log 
          │       ├── Services 
          │       │   └── Eip               //EIP main directory, which must be retained 
          │       │       ├── EipClient.php //EIP operation class, and all operation can be completed via EipClient class. 
          │       │       └── model        //EIP internal model, such as Billing 
          │       │   └── EipGroup           //EIPGroup main directory, which must be retained 
          │       │       ├── EipGroupClient.php //EIPGroup operation class, and all operation can be completed via EipGroupClient class. 
          │       │       └── model        //EIPGroup internal model, such as Billing, Reservation 
          │       └── Util                 //BCE common tool 
          └──vendor                        //The third party library 
          Previous
          Overview
          Next
          Initialization