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 1mo 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 today

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

32

—

LowBetter than 69% of packages

Maintenance72

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

421d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/170431844?v=4)[dagasmart](/maintainers/dagasmart)[@dagasmart](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[luoyy/ali-oss-storage

aliyun oss filesystem storage for laravel 10+

1531.0k1](/packages/luoyy-ali-oss-storage)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[yiier/yii2-aliyun-oss

Yii2 阿里云 OSS

445.3k2](/packages/yiier-yii2-aliyun-oss)

PHPackages © 2026

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