PHPackages                             captainnx/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. captainnx/rongcloud

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

captainnx/rongcloud
===================

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

1.0.2(6y ago)023MITPHPPHP &gt;=5.4.0

Since Nov 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/captainnx/RongCloud)[ Packagist](https://packagist.org/packages/captainnx/rongcloud)[ RSS](/packages/captainnx-rongcloud/feed)WikiDiscussions master Synced today

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

RongCloud
=========

[](#rongcloud)

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

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

安装
--

[](#安装)

```
composer require captainnx/rongcloud

```

更新你的依赖包 `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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~18 days

Total

3

Last Release

2342d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31986362?v=4)[captainnx](/maintainers/captainnx)[@captainnx](https://github.com/captainnx)

---

Top Contributors

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

---

Tags

laravellaravel 5l5rongCloudRongCloud SDK

### Embed Badge

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

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

###  Alternatives

[misterphilip/maintenance-mode

An enhanced drop-in replacement for Laravel's maintenance mode

120176.7k](/packages/misterphilip-maintenance-mode)[latrell/rongcloud

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

2111.7k](/packages/latrell-rongcloud)[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

21024.9k](/packages/unicodeveloper-laravel-emoji)[leantony/laravel-grid

A grid view for laravel, inspired by the yii2 grid widget

9060.2k](/packages/leantony-laravel-grid)[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)
