src/BaiduBce/Services/Bos/BosClient.php
public function createBucket($bucketName, $options = array())
    {
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);

        return $this->sendRequest(
            HttpMethod::PUT,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName
            )
        );
    }
public function createBucket($bucketName, $options = array())
    {
        list($config) = $this->parseOptions($options, BosOptions::CONFIG);

        return $this->sendRequest(
            HttpMethod::PUT,
            array(
                BosOptions::CONFIG => $config,
                'bucket_name' => $bucketName
            )
        );
    }
public function createBucket ( $ bucketName , $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , BosOptions :: CONFIG ) ; return $ this -> sendRequest ( HttpMethod :: PUT , array ( BosOptions :: CONFIG => $ config , 'bucket_name' => $ bucketName ) ) ; }
Create a new bucket.

@param string $bucketName The bucket name.
@param array $options Supported options:
<ul>
<li>config: The optional bce configuration, which will overwrite
the default client configuration that was passed in constructor.
</li>
</ul>
@return \stdClass
Create a new bucket .