Updated on 2024-12-09 GMT+08:00

Example Programs

OBS PHP SDK provides abundant example programs for your reference and use.

These programs can be obtained from the OBS PHP SDK.

You can also click the links below to download corresponding example programs.

Example programs include:

Sample Code

Description

BucketOperationsSample

How to use bucket-related APIs

ObjectOperationsSample

How to use object-related APIs

DownloadSample

How to download an object

CreateFolderSample

How to create a folder

DeleteObjectsSample

How to delete objects in a batch

ListObjectsSample

How to list objects

ListVersionsSample

How to list versioning objects

ListObjectsInFolderSample

How to list objects in a folder

ObjectMetaSample

How to customize object metadata

SimpleMultipartUploadSample

How to perform a multipart upload

RestoreObjectSample

How to download Archive objects

ConcurrentCopyPartSample

How to concurrently copy parts of a large object

ConcurrentDownloadObjectSample

How to concurrently download parts of a large object

ConcurrentUploadPartSample

How to concurrently upload parts of a large object

PostObjectSample

How to perform a browser-based upload

TemporarySignatureSample

How to use URLs for authorized access