src/BaiduBce/Services/Bos/BosClient.php
public function putObjectFromString(
        $bucketName,
        $key,
        $data,
        $options = array()
    ) {
        return $this->putObject(
            $bucketName,
            $key,
            $data,
            strlen($data),
            base64_encode(md5($data, true)),
            $options
        );
    }
public function putObjectFromString(
        $bucketName,
        $key,
        $data,
        $options = array()
    ) {
        return $this->putObject(
            $bucketName,
            $key,
            $data,
            strlen($data),
            base64_encode(md5($data, true)),
            $options
        );
    }
public function putObjectFromString ( $ bucketName , $ key , $ data , $ options = array ( ) ) { return $ this -> putObject ( $ bucketName , $ key , $ data , strlen ( $ data ) , base64_encode ( md5 ( $ data , true ) ) , $ options ) ; }
Create object and put content of string to the object

@param string $bucketName The bucket name.
@param string $key The object path.
@param string $data The object content.
@param mixed $options The optional bce configuration, which will overwrite the
default configuration that was passed while creating BosClient instance.

@return mixed
Create object and put content of string to the object