资 源 简 介
Introduction
Aliyun OSS(Open Storage Services) PHP SDK(non-official)
# Demo #
```
oss = new OSS_SDK("Your accessID", "Your accessKey");
$configs = array
(
"logDir" => dirname(__FILE__),
"timeout" => 86400
);
$this->oss->setConfig($configs);
$this->oss->setConfig("debug", false);
}
public function run()
{
// 自定义OSS相关对象名称
$bucket = "DemoBucket";
$object = "DemoObject.gif";
$group = "DemoGroup";
$myfile = "Demo.gif";
$multi = "DemoMulti.gif";
// Bucket相关操作
$responses[] = $this->oss->listBuckets();
$responses[] = $this->oss->createBucket($bucket);
$responses[] = $this->oss->deleteBucket("AnotherBucket");