Source code

For the source code, see GitHub.

Code samples

OSS SDK for PHP provides a variety of code samples for your reference or use. The following table describes the content of code samples:

Sample file Content
Object.php Object operations, including upload objects, download objects, and manage objects
MultipartUpload.php Multipart upload
Signature.php Authorized access with the signed URL
Callback.php Upload callback
Image.php Image processing
Bucket.php Bucket operations, including create a bucket, delete a bucket, list buckets, and ACL.
BucketLifecycle.php Configure, view, and delete the lifecycle rules of a bucket
BucketLogging.php Configure, view, and delete the access log files of a bucket
BucketReferer.php Configure, view, and delete the Hotlink protection settings of a bucket
BucketWebsite.php Configure, view, and delete the static website hosting settings of a bucket
BucketCors.php Configure, view, and delete the CORS settings of a bucket