PHPackages                             bianjp/aliyun-oss - 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. bianjp/aliyun-oss

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

bianjp/aliyun-oss
=================

阿里云OSS官方SDK的Composer封装

1.0.0(11y ago)0241MITPHPPHP &gt;=5.4.0

Since May 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bianjp/aliyun-oss-php)[ Packagist](https://packagist.org/packages/bianjp/aliyun-oss)[ Docs](https://github.com/bianjp/aliyun-oss-php)[ RSS](/packages/bianjp-aliyun-oss/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

阿里云OSS
======

[](#阿里云oss)

DEPRECATED
----------

[](#deprecated)

阿里云官方已打包 [aliyuncs/oss-sdk-php](https://packagist.org/packages/aliyuncs/oss-sdk-php)，此仓库废弃

---

阿里云OSS官方PHP SDK的Composer封装

- 基于[官方PHP SDK开发包(2014-06-25)](http://docs.aliyun.com/?spm=5176.383663.9.7.WhuzGU#/oss/sdk/sdk-download&php)
- 仅修改了配置文件：注释非必须的常量；常量未定义时才定义，避免重新定义。因此可在其它地方配置OSS
- 未使用命名空间，注意是否与其它类库冲突
- 使用composer自动加载后，暴露的类有OSS\_Exception, ALIOSS, 实例化ALIOSS对象时定义类MimeTypes, RequestCore

示例

```
$Oss = new \ALIOSS($access_id, $access_key, $hostname);
```

或

```
define('OSS_ACCESS_ID', 'Your access id');
define('OSS_ACCESS_KEY', 'Your access key');
$Oss = new \ALIOSS(null, null, $hostname);
```

Tips:

- 虽然$hostname有默认值（oss.aliyuncs.com），但强烈建议传递该参数，因为该域名目前默认是杭州节点，未来可能会改变
- 域名和节点是多对一的关系，要操作某bucket，必须传递该bucket所在节点的域名
- 若同时使用阿里云ECS且与OSS在同一节点，请使用内网域名，速度快且流量免费
- [各节点域名](http://docs.aliyun.com/?spm=5176.383663.9.11.Bvtco9#/oss/product-documentation/domain-region)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4015d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bbffd187fd51a96a20ededc991d421eede256d78907ae7296170b3071e42b0b?d=identicon)[bianjp](/maintainers/bianjp)

---

Top Contributors

[![bianjp](https://avatars.githubusercontent.com/u/4749277?v=4)](https://github.com/bianjp "bianjp (2 commits)")

---

Tags

aliyunossAliyunOSS

### Embed Badge

![Health badge](/badges/bianjp-aliyun-oss/health.svg)

```
[![Health](https://phpackages.com/badges/bianjp-aliyun-oss/health.svg)](https://phpackages.com/packages/bianjp-aliyun-oss)
```

###  Alternatives

[johnlui/aliyun-oss

阿里云 OSS 官方 SDK 的 Composer 封装，支持任何 PHP 项目，包括 Laravel、Symfony、TinyLara 等等。

501178.3k6](/packages/johnlui-aliyun-oss)[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

523566.2k7](/packages/jacobcyl-ali-oss-storage)[alphasnow/aliyun-oss-laravel

alibaba cloud object storage service for laravel

182240.7k2](/packages/alphasnow-aliyun-oss-laravel)[johnlui/aliyun-oss-laravel7

阿里云 OSS 官方 SDK 的 Composer 封装，支持任何 PHP 项目，包括 Laravel、Symfony、TinyLara 等等。

347.8k1](/packages/johnlui-aliyun-oss-laravel7)[alphasnow/aliyun-oss-flysystem

Flysystem adapter for the Aliyun storage

14249.2k4](/packages/alphasnow-aliyun-oss-flysystem)[summergeorge/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

3915.5k](/packages/summergeorge-ali-oss-storage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
