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

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

dagasmart/cloud-storage
=======================

支持 本地、腾讯云、阿里云等OSS云存储功能，支持一键迁移、资源展示等功能。

1.0.3(1y ago)02MITPHPPHP &gt;=8.0

Since May 8Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/dagasmart/cloud-storage)[ Packagist](https://packagist.org/packages/dagasmart/cloud-storage)[ Docs](https://github.com/dagasmart/cloud-storage)[ RSS](/packages/dagasmart-cloud-storage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (2)Used By (0)

BizAdmin Extension
==================

[](#bizadmin-extension)

云存储管理
-----

[](#云存储管理)

支持 本地，腾讯云、阿里云等OSS云存储功能，支持一键迁移，资源展示等功能。

安装
--

[](#安装)

#### zip 下载地址

[](#zip-下载地址)

#### composer

[](#composer)

```
composer require dagasmart/cloud-storage
```

使用说明
----

[](#使用说明)

1. 安装扩展
2. 在扩展管理中启用扩展

使用方法
----

[](#使用方法)

### 配置

[](#配置)

需要配置存储方式才能调用

### 调用

[](#调用)

选项组件，在form表单中调用

```
use DagaSmart\CloudStorage\Traits\UploadPickerTrait;
class CloudResourceController extends BaseController
{
    use UploadPickerTrait;

    // 调用方法
    $this->uploadPicker('icon', __('admin.admin_menu.icon'));
}
```

上传文件

```
use DagaSmart\CloudStorage\Traits\UploadTrait;

//获取文件下载链接
$this->cloudGetUrl($resource_id, $openDomain = '');

//简单上传
$this->cloudSimpleUpload($file_path, $storage_id, $fileName = '');

//分片上传
$this->cloudChunkUpload($file_path, $storage_id, $fileName = '', $chunk_size = 50 * 1024 * 1024, $min_size = 5 * 1024 * 1024 * 1024);
```

### 注意事项

[](#注意事项)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance67

Regular maintenance activity

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a04a439041bd34c826a8cbfe7e2198c35a2106f74703cd1bec9710655905007?d=identicon)[dagasmart](/maintainers/dagasmart)

---

Top Contributors

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

---

Tags

extensionossbizadmin

### Embed Badge

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

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

###  Alternatives

[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[yiier/yii2-aliyun-oss

Yii2 阿里云 OSS

445.3k2](/packages/yiier-yii2-aliyun-oss)[luoyy/ali-oss-storage

aliyun oss filesystem storage for laravel 9+

1529.9k1](/packages/luoyy-ali-oss-storage)

PHPackages © 2026

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