Help Center> Object Storage Service> PHP> Example Programs
Updated on 2023-11-01 GMT+08:00

Example Programs

OBS PHP SDK provides abundant sample programs for your reference and use. From the OBS PHP SDK, you can obtain the sample programs. You can also click the sample code links in the table below to download corresponding sample 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