PHPackages                             szwtdl/storage - 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. szwtdl/storage

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

szwtdl/storage
==============

阿里云，腾讯云，七牛云，对象存储，支持laravel

v0.0.1(3y ago)0174Apache-2.0PHPPHP &gt;=7.4

Since Sep 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/szwtdl/storage)[ Packagist](https://packagist.org/packages/szwtdl/storage)[ RSS](/packages/szwtdl-storage/feed)WikiDiscussions v2.0.0 Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

### 对象存储

[](#对象存储)

#### 安装

[](#安装)

```
composer require szwtdl/storage
```

#### 使用

[](#使用)

```
$config = [
    'access_key' => '',
    'secret_key' => '',
    'bucket' => 'szwtdl',
    'endpoint' => 'http://oss-cn-qingdao.aliyuncs.com',
    'options' => [
        'domain' => 'https://szwtdl.oss-cn-qingdao.aliyuncs.com',
        'region' => 'oss-cn-qingdao',
    ],
];

$storage = Storage::Aliyun($config);
// $storage = Storage::Qiniu($config);
// $storage = Storage::Tencent($config);

$storage->upload("./example/example.txt", "demo/example.txt");

$storage->download("demo/example.txt", "./example/123456.txt");

$storage->delete("demo/example.txt");
```

#### laravel 使用

[](#laravel-使用)

```
php artisan vendor:publish --provider="Szwtdl\Storage\ServiceProvider"

$object = "test/example.txt";
$local_path = "./example/example.txt";

##### 上传
app('storage')->upload($local_path,$object);

##### 下载
app('storage')->download($object,$$local_path);

#### 删除文件
app('storage')->delete($object);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity10

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

Every ~760 days

Total

2

Last Release

563d ago

Major Versions

v0.0.1 → v2.0.0.x-dev2024-10-29

### Community

Maintainers

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

---

Top Contributors

[![szwtdl](https://avatars.githubusercontent.com/u/13212946?v=4)](https://github.com/szwtdl "szwtdl (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/szwtdl-storage/health.svg)

```
[![Health](https://phpackages.com/badges/szwtdl-storage/health.svg)](https://phpackages.com/packages/szwtdl-storage)
```

PHPackages © 2026

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