PHPackages                             awheel/oss-upload - 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. awheel/oss-upload

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

awheel/oss-upload
=================

oss upload

0.0.1(5y ago)07MITPHPPHP &gt;=5.3.0

Since Dec 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/awheel/oss-upload)[ Packagist](https://packagist.org/packages/awheel/oss-upload)[ RSS](/packages/awheel-oss-upload/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

OSS Upload
==========

[](#oss-upload)

上传文件到阿里云 OSS 的封装, 文件格式使用 [md52url](https://github.com/awheel/md52url) 规范.

使用方法
----

[](#使用方法)

```

composer require awheel/oss-upload

use awheel\OSSUpload\OSSUpload;

$bucket = '__BUCKET_NAME__';
$accessKeyId = '__ACCESS_KEY_ID__';
$accessKeySecret = '__ACCESS_KEY_SECRET__';
$endpoint = '__ENDPOINT__';
$pathPrefix = '/testupload';

$upload = new OSSUpload($bucket, $accessKeyId, $accessKeySecret, $endpoint, $pathPrefix);
$md5 = $upload->upload('./test.png');
$path = $upload->upload('./test.png', true);

echo $md5.PHP_EOL;
echo $path.PHP_EOL;

```

其中bucket，accessKeyId等需要替换为真实的配置信息，详见 example/upload.php

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

1985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6b9daa2739486cd90ba63f5e148ab1353ac16b6e8466c193d2067ed88cae5b7?d=identicon)[lyf362345](/maintainers/lyf362345)

---

Top Contributors

[![fengqi](https://avatars.githubusercontent.com/u/517708?v=4)](https://github.com/fengqi "fengqi (1 commits)")

---

Tags

md52urloss

### Embed Badge

![Health badge](/badges/awheel-oss-upload/health.svg)

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

###  Alternatives

[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

523566.2k7](/packages/jacobcyl-ali-oss-storage)[iidestiny/flysystem-oss

Flysystem adapter for the Oss storage.

95607.5k26](/packages/iidestiny-flysystem-oss)[xxtime/flysystem-aliyun-oss

AliYun OSS adapter for flysystem. Support PHP8. aliyuncs/oss-sdk-php ~2.6

51505.3k28](/packages/xxtime-flysystem-aliyun-oss)[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[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)
