PHPackages                             imphinite/tencent-cloudcomm - 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. [API Development](/categories/api)
4. /
5. imphinite/tencent-cloudcomm

ActiveLaravel[API Development](/categories/api)

imphinite/tencent-cloudcomm
===========================

This is a Laravel package for server-end Tencent Cloud Communications API

1.0.0(8y ago)0693MITPHP

Since Feb 8Pushed 8y agoCompare

[ Source](https://github.com/imphinite/tencent-cloudcomm)[ Packagist](https://packagist.org/packages/imphinite/tencent-cloudcomm)[ RSS](/packages/imphinite-tencent-cloudcomm/feed)WikiDiscussions master Synced 3d ago

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

Collection of Tencent Cloud Communication Web Services API Adapter for Laravel 5
--------------------------------------------------------------------------------

[](#collection-of-tencent-cloud-communication-web-services-api-adapter-for-laravel-5)

Provides convenient way of setting up and making requests to Tencent Cloud Communication Web Services API from [Laravel](http://laravel.com/) application.

For services documentation, APP key and Usage Limits visit:

- [Tencent Cloud Communication Services Documentation](https://cloud.tencent.com/document/product/269)
- [Tencent Cloud Communication Services APP Key](https://cloud.tencent.com/document/product/269/1504)
- [Tencent Cloud Communication Services Price and Quota](https://cloud.tencent.com/document/product/269/11673)
- [Tencent Cloud Communication Services Usage Limit](https://cloud.tencent.com/document/product/269/9346)

\*\*SPECIAL THANKS TO [Alexpechkarev](https://github.com/alexpechkarev/). Part of web services engine is borrowed from [Alexpechkarev/google-maps](https://github.com/alexpechkarev/google-maps/).

[Features](https://cloud.tencent.com/document/product/269/1520)
---------------------------------------------------------------

[](#features)

- Account Management
- Send Message
- Push Notifications
- Group Management
- Profile Picture Management
- Chain Relationship Management
- Chat Censor Management
- Data Download
- Online Status
- Global Chat Restriction Management

Dependency
----------

[](#dependency)

- [PHP cURL](http://php.net/manual/en/curl.installation.php)
- [PHP 7](http://php.net/)

Installation
------------

[](#installation)

Issue following command in console:

```
composer require imphinite/tencent-cloudcomm
```

Alternatively edit composer.json by adding following line and run **`composer update`**

```
"require": {
		....,
		"imphinite/tencent-cloudcomm",

	},
```

Configuration
-------------

[](#configuration)

Register package service provider and facade in 'config/app.php'

```
'providers' => [
    ...
    CloudComm\ServiceProvider\CloudCommServiceProvider::class,
]

'aliases' => [
    ...
    'CloudComm' => CloudComm\Facades\CloudComm::class,
]
```

Publish configuration file using **`php artisan vendor:publish --tag=cloudcomm --force`** or simply copy package configuration file and paste into **`config/cloudcomm.php`**

Open configuration file **`config/cloudcomm.php`** and

1. Add your app key
2. Add your appication admin identifier
3. Add your admin usersig (All of above are obtained from your App in Tencent Cloud Communication Services Console)

```
    /*
    |----------------------------------
    | SDK App ID
    |------------------------------------
    */

    'sdkappid'          => 'YOUR APP ID',
    ...,
    /*
    |----------------------------------
    | Identifier
    |------------------------------------
    */

    'identifier'          => 'YOUR APP ADMIN IDENTIFIER',
    ...,
    /*
    |----------------------------------
    | UserSig
    |------------------------------------
    */

    'usersig'           => 'YOUR ADMIN USERSIG',
```

If you like to use different admins for any of the services, you can overwrite master admin identifier and usersig by specifying them in the `service` array for selected web service.

Usage
-----

[](#usage)

Import this package at the top of your file:

```
use CloudComm;
...
```

Here is an example of making request to Tencent-hosted Account Registration API:

```
$service = CloudComm::load('register-account')
    ->setParam([
        'Identifier'            => 'testaccount1',
        'IdentifierType'        => 3,  // refer to Tencent documentation
        'Password'              => 'Testaccount1Password!'
    ]);
$response = $service->get();
...
```

Alternatively parameters can be set using `setParamByKey()` method. For deeply nested array use "dot" notation as per example below.

```
$service = CloudComm::load('register-account')
    ->setParamByKey('Identifier', 'testaccount1')
    ->setParamByKey('IdentifierType', 3)
    ->setParamByKey('Password', 'Testaccount1Password!');  //return $this
...
```

Another example showing request to Get User Status API:

```
$service = CloudComm::load('get-user-status')
    ->setParam([
        'To_Account'            => [
            'testaccount1',
            'testaccount2'
        ]
    ]);
$response = $service->get();
...
```

Available methods
-----------------

[](#available-methods)

- [`load( $serviceName )`](#load)
- [`setParamByKey( $key, $value )`](#setParamByKey)
- [`setParam( $parameters )`](#setParam)
- [`get()`](#get)

---

**`load( $serviceName )`** - load web service by name

Accepts string as parameter, web service name as specified in configuration file.
Returns reference to it's self.

```
CloudComm::load('nearbysearch')
...
```

---

**`setParamByKey( $key, $value )`** - set request parameter using key:value pair

Accepts two parameters:

- `key` - body parameter name
- `value` - body parameter value

Deeply nested array can use 'dot' notation to assign value.
Returns reference to it's self.

```
$service = CloudComm::load('register-account')
    ->setParamByKey('Identifier', 'testaccount1')
    ->setParamByKey('IdentifierType', 3)
    ->setParamByKey('Password', 'Testaccount1Password!');  //return $this
...
```

---

**`setParam( $parameters )`** - set all request parameters at once

Accepts array of parameters
Returns reference to it's self.

```
$service = CloudComm::load('register-account')
    ->setParam([
        'Identifier'            => 'testaccount1',
        'IdentifierType'        => 3,  // refer to Tencent documentation
        'Password'              => 'Testaccount1Password!'
    ]);
...
```

---

- **`get()`** - perform web service request (irrespectively to request type POST or GET )

```
$response = CloudComm::load('register-account')
    ->setParam([
        'Identifier'            => 'testaccount1',
        'IdentifierType'        => 3,  // refer to Tencent documentation
        'Password'              => 'Testaccount1Password!'
    ])->get();

var_dump(json_decode($response));  // output
...
```

MIT License
-----------

[](#mit-license)

Collection of Tencent Cloud Communication Web Services API Adapter for Laravel 5 is released under the [MIT License](https://github.com/imphinite/tencent-cloudcomm/blob/master/LICENSE).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3017d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e409293473665b0d343f5aef1b3023c43f90306873791c60c9d175aba54b9f4?d=identicon)[imphinite](/maintainers/imphinite)

---

Top Contributors

[![imphinite](https://avatars.githubusercontent.com/u/32465309?v=4)](https://github.com/imphinite "imphinite (5 commits)")

---

Tags

tlstencenttencent-cloudTencent Cloud CommunicationsTencent Login Service

### Embed Badge

![Health badge](/badges/imphinite-tencent-cloudcomm/health.svg)

```
[![Health](https://phpackages.com/badges/imphinite-tencent-cloudcomm/health.svg)](https://phpackages.com/packages/imphinite-tencent-cloudcomm)
```

###  Alternatives

[2captcha/2captcha

PHP package for easy integration with 2captcha API

86430.0k3](/packages/2captcha-2captcha)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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