PHPackages                             alibabacloud/oss-v2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. alibabacloud/oss-v2

ActiveLibrary[File &amp; Storage](/categories/file-storage)

alibabacloud/oss-v2
===================

Aliyun OSS SDK for PHP v2

0.4.0(6mo ago)2032.5k↑215.4%3[5 PRs](https://github.com/aliyun/alibabacloud-oss-php-sdk-v2/pulls)10Apache-2.0PHPPHP ^7.4 || ^8.0CI passing

Since Jan 3Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/aliyun/alibabacloud-oss-php-sdk-v2)[ Packagist](https://packagist.org/packages/alibabacloud/oss-v2)[ Docs](https://github.com/aliyun/alibabacloud-oss-php-sdk-v2)[ RSS](/packages/alibabacloud-oss-v2/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (5)Versions (18)Used By (10)

Alibaba Cloud OSS SDK for PHP v2
================================

[](#alibaba-cloud-oss-sdk-for-php-v2)

[![GitHub version](https://camo.githubusercontent.com/b9267669afc5758b346691ef4c028d955796f9a0752ba2e64d3c8754a37282a9/68747470733a2f2f62616467652e667572792e696f2f67682f616c6979756e253246616c6962616261636c6f75642d6f73732d7068702d73646b2d76322e737667)](https://badge.fury.io/gh/aliyun%2Falibabacloud-oss-php-sdk-v2)

alibabacloud-oss-php-sdk-v2 is the v2 of the OSS SDK for the PHP programming language

[简体中文](README-CN.md)
--------------------

[](#简体中文)

About
-----

[](#about)

> - This PHP SDK is based on the official APIs of [Alibaba Cloud OSS](http://www.aliyun.com/product/oss/).
> - Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, a low cost, and high reliability.
> - The OSS can store any type of files and therefore applies to various websites, development enterprises and developers.
> - With this SDK, you can upload, download and manage data on any app anytime and anywhere conveniently.

Running Environment
-------------------

[](#running-environment)

> - PHP 7.4 or above.

Installing
----------

[](#installing)

### Install the sdk through composer

[](#install-the-sdk-through-composer)

If you use the composer to manage project dependencies, run the following command in your project's root directory:

```
$ composer require alibabacloud/oss-v2
```

You can also declare the dependency on Alibaba Cloud OSS SDK for PHP v2 in the composer.json file.

```
"require": {
    "alibabacloud/oss-v2": "*"
}
```

### Install from the [PHAR File](https://github.com/aliyun/alibabacloud-oss-php-sdk-v2/releases) directly

[](#install-from-the-phar-file-directly)

```
$ require_once '/path/to/alibabacloud-oss-php-sdk-v2-{version}.phar'
```

Getting Started
---------------

[](#getting-started)

#### List Bucket

[](#list-bucket)

```
