PHPackages                             pacovu/engagevoice-sdk-wrapper - 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. pacovu/engagevoice-sdk-wrapper

ActiveLibrary[API Development](/categories/api)

pacovu/engagevoice-sdk-wrapper
==============================

RingCentral Engage Voice SDK wrapper for PHP

032PHP

Since Jul 17Pushed 2y agoCompare

[ Source](https://github.com/PacoVu/engagevoice-sdk-wrapper-php)[ Packagist](https://packagist.org/packages/pacovu/engagevoice-sdk-wrapper)[ RSS](/packages/pacovu-engagevoice-sdk-wrapper/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Engage Voice SDK Wrapper for PHP.
=================================

[](#engage-voice-sdk-wrapper-for-php)

---

Overview
--------

[](#overview)

Engage Voice SDK Wrapper for PHP is a utility class, which helps you easily integrate your PHP project with RingCentral Engage Voice Services. The SDK allows you to authenticate a user in two different modes, the ENGAGE mode and the LEGACY mode. In the ENGAGE mode, you must h

---

Install the Engage Voice SDK Wrapper
------------------------------------

[](#install-the-engage-voice-sdk-wrapper)

```
$ composer require pacovu/engagevoice-sdk-wrapper:dev-master

```

---

API References
--------------

[](#api-references)

**Constructor**

```
RestClient($clientId, $clientSecret)

```

*Description:*

- Creates and initializes an EngageVoice SDK wrapper object. If the `$clientId` and `$clientSecret` parameters are provided, the SDK will be set to the ENGAGE mode and you can login with a RingCentral MVP user login credentials. If the `$clientId` and `$clientSecret` parameters are omitted, the SDK will be set to the LEGACY mode and you can login the legacy server using the username and password.

*Parameters:*

- $clientId: set the `clientId` of a RingCentral app to enable login with RingCentral MVP user credentials.
- $clientSecret: set the `clientSecret` of a RingCentral app to enable login with RingCentral MVP user credentials.

*Example code for ENGAGE mode:*

```
require('vendor/autoload.php');

$ev = new EngageVoiceSDKWrapper\RestClient(RINGCENTRAL_CLIENT_ID, RINGCENTRAL_CLIENT_SECRET)

```

*Example code for LEGACY mode:*

```
require('vendor/autoload.php');

$ev = new EngageVoiceSDKWrapper\RestClient()

```

---

**Function login**login($options, function ($response) )

*Description:*

- Login using a user's credential. If the SDK mode is "Engage", the username and password must be the valid username and password of a RingCentral Office user.

*Parameters:*

- $options: An array of login credentials. For the "Engage" mode, set the `jwt` token. For the "Legacy" mode, set the `username` and `password`.

*Response:*

*Example code:*

```
// Login with RingCentral Office user credentials.
require('vendor/autoload.php');

$ev = new EngageVoiceSDKWrapper\RestClient(RC_CLIENT_ID, RC_CLIENT_SECRET);
RC_JWT= "personal-jwt-token";
$ev->login([ 'jwt' => RC_JWT ], function($response){
  // call the get or post function
  ...
});

// Login with Legacy user credentials
$ev = new EngageVoiceSDKWrapper\RestClient();

USERNAME= "your-username";
PASSWORD= "your-password";

$ev->login([ 'username' => USERNAME, 'password' => PASSWORD ]) {
  // call get or post function
  ...
});

```

**Function get**

```
get($endpoint, $params, "callback");

```

*Description:*

- Send an HTTP GET request to Engage Voice server.

*Parameters:*

- $endpoint: Engage Voice API endpoint.
- $params: a JSON object containing key/value pair parameters to be sent to an Engage Voice API, where the keys are the query parameters of the API.
- "callback": the name of a callback function. If specified, response is returned via the callback function.

*Response:*API response in JSON object

*Example code:*

```
# Read account info.

$endpoint = "admin/accounts";
try{
    $resp = $ev->get($endpoint);
    print ($resp);
}catch (Exception $e) {
    print $e->getMessage();
}

```

**Function post**

```
post($endpoint, $params, "callback");

```

*Description:*

- Sends an HTTP POST request to Engage Voice server.

*Parameters:*

- $endpoint: Engage Voice API
- $params: a JSON object containing key/value pair parameters to be sent to an Engage Voice API, where the keys are the body parameters of the API.
- "callback": the name of a callback function. If specified, response is returned via the callback function.

*Response:*API response in JSON object

*Example code:*

```
# Search for campaign leads.

$endpoint = "admin/accounts/~/campaignLeads/leadSearch";
$params = array ( 'firstName' => "Larry" );
try{
    $resp = $ev->post($endpoint, $params);
    print ($resp);
}catch (Exception $e) {
    print $e->getMessage();
}

```

License
-------

[](#license)

Licensed under the MIT License.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13070584?v=4)[Paco Vu](/maintainers/PacoVu)[@PacoVu](https://github.com/PacoVu)

---

Top Contributors

[![PacoVu](https://avatars.githubusercontent.com/u/13070584?v=4)](https://github.com/PacoVu "PacoVu (29 commits)")

### Embed Badge

![Health badge](/badges/pacovu-engagevoice-sdk-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/pacovu-engagevoice-sdk-wrapper/health.svg)](https://phpackages.com/packages/pacovu-engagevoice-sdk-wrapper)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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