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

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

latrell-contrib/rongcloud
=========================

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

1.2(9y ago)0101MITPHPPHP &gt;=5.4.0

Since May 19Pushed 9y agoCompare

[ Source](https://github.com/jinleileiking/RongCloud)[ Packagist](https://packagist.org/packages/latrell-contrib/rongcloud)[ RSS](/packages/latrell-contrib-rongcloud/feed)WikiDiscussions master Synced 4w 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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

3620d ago

### Community

Maintainers

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

---

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-contrib-rongcloud/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[latrell/rongcloud

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

2211.8k](/packages/latrell-rongcloud)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[latrell/geohash

This package geohash for Laravel 5 support.

1128.4k](/packages/latrell-geohash)

PHPackages © 2026

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