PHPackages                             knight/ucloud - 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. knight/ucloud

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

knight/ucloud
=============

upload photo

0.1.0(6y ago)015MITPHP

Since May 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jiangtao6888/ucloud)[ Packagist](https://packagist.org/packages/knight/ucloud)[ RSS](/packages/knight-ucloud/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ucloud
======

[](#ucloud)

upload ucloud

Usage:
======

[](#usage)

```
composer require knight/ucloud

```

register the `Knight\Ucloud\UcloudServiceProvider::class,` in your app configuration file:

```
'providers' => [
    // Other service providers...
    Knight\Ucloud\UcloudServiceProvider::class,
],
'aliases' => [
    // Other aliases...
    'Ucloud' => \Knight\Ucloud\Ucloud::class,
],
```

config

```
'disks' => [
    //other...

    'ucloud'=>[
        'suffix'=>env('UCLOUD_PROXY_SUFFIX',''),
        'public_key'=>env('UCLOUD_PUBLIC_KEY',''),
        'private_key'=>env('UCLOUD_PRIVATE_KEY',''),
    ]

],

```

```

use Knight\Ucloud\Ucloud;

class IndexController
{

    public function index(){

        $bucket = "bucket";
        //上传至存储空间后的文件名称(请不要和API公私钥混淆)
        $key    = "your name ";
        //待上传文件的本地路径
        $file   = "/Users/knight/Desktop/picture.png";
        list($data, $err) = Ucloud::UCloud_PutFile($bucket, $key, $file);
        if ($err) {
            echo "error: " . $err->ErrMsg . "\n";
            echo "code: " . $err->Code . "\n";
            exit;
        }
        echo "ETag: " . $data['ETag'] . "\n";

    }

}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

2547d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54b299eb9a1bae28830bc6b91f05c0170bfa5ad2165030afee7f843484f22550?d=identicon)[jiangtao6888](/maintainers/jiangtao6888)

---

Top Contributors

[![KnightJiang](https://avatars.githubusercontent.com/u/117444927?v=4)](https://github.com/KnightJiang "KnightJiang (6 commits)")[![jiangtao6888](https://avatars.githubusercontent.com/u/16657586?v=4)](https://github.com/jiangtao6888 "jiangtao6888 (1 commits)")

### Embed Badge

![Health badge](/badges/knight-ucloud/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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