PHPackages                             latrell/rongcloud - 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. latrell/rongcloud

ActiveLibrary

latrell/rongcloud
=================

融云服务端SDK在Laravel的封装包。

1.2(9y ago)2111.7k6MITPHPPHP &gt;=5.4.0

Since May 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Latrell/RongCloud)[ Packagist](https://packagist.org/packages/latrell/rongcloud)[ RSS](/packages/latrell-rongcloud/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

RongCloud
=========

[](#rongcloud)

融云服务端SDK在 Laravel 5 的封装包。

该拓展包想要达到在 Laravel 5 框架下，便捷使用融云服务端SDK的目的。

安装
--

[](#安装)

```
composer require latrell/rongcloud dev-master

```

更新你的依赖包 `composer update` 或者全新安装 `composer install`。

使用
--

[](#使用)

要使用融云服务端SDK服务提供者，你必须自己注册服务提供者到Laravel服务提供者列表中。

找到 `config/app.php` 配置文件中，key为 `providers` 的数组，在数组中添加服务提供者。

```
    'providers' => [
        // ...
        Latrell\RongCloud\RongCloudServiceProvider::class,
    ]
```

找到key为 `aliases` 的数组，在数组中注册Facades。

```
    'aliases' => [
        // ...
        'RongCloud' => Latrell\RongCloud\Facades\RongCloud::class,
    ]
```

运行 `php artisan vendor:publish` 命令，发布配置文件到你的项目中。

修改配置文件 `config/latrell-rongcloud.php` 中的秘钥配置。

例子
--

[](#例子)

### 获取 Token 方法

[](#获取-token-方法)

```
	$user_id = 1;
	$name = '测试用户';
	$portrait_uri = 'http://demo.com/1.jpg';
	$token = RongCloud::getToken($userId, $name, $portrait_uri);
	logger('RongCloud token: ' . $token);
```

更多使用方法，请参考融云API文档：

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Every ~74 days

Total

2

Last Release

3574d ago

### Community

Maintainers

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

---

Top Contributors

[![latrell](https://avatars.githubusercontent.com/u/6267962?v=4)](https://github.com/latrell "latrell (17 commits)")

---

Tags

laravellaravel 5l5rongCloudRongCloud SDK

### Embed Badge

![Health badge](/badges/latrell-rongcloud/health.svg)

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

###  Alternatives

[latrell/alipay

支付宝SDK在Laravel5封装包。

40349.2k](/packages/latrell-alipay)[latrell/swagger

Swagger for Laravel 5

4962.8k](/packages/latrell-swagger)[latrell/geohash

This package geohash for Laravel 5 support.

1128.3k](/packages/latrell-geohash)[latrell/qqwry

纯真 IP 库 Laravel 版 。

274.7k](/packages/latrell-qqwry)

PHPackages © 2026

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