PHPackages                             toku/caas\_sdk - 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. toku/caas\_sdk

ActiveLibrary[API Development](/categories/api)

toku/caas\_sdk
==============

Toku CaaS SDK

v1.0(4y ago)0352MITPHPPHP &gt;=7.0

Since Oct 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cheefoong-toku/toku-caas-sdk)[ Packagist](https://packagist.org/packages/toku/caas_sdk)[ RSS](/packages/toku-caas-sdk/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/cheefoong-toku/toku-caas-sdk/blob/main/LICENSE)

[![Toku](https://camo.githubusercontent.com/8bc7bf13f8a07ba338fcb54831f27eaa8c77eb6ca8d191f01b60884365fdc7d2/68747470733a2f2f63616173757365722e746f6b75776f726c642e636f6d2f696d616765732f6c6f676f2d696e76657273652e706e67)](https://camo.githubusercontent.com/8bc7bf13f8a07ba338fcb54831f27eaa8c77eb6ca8d191f01b60884365fdc7d2/68747470733a2f2f63616173757365722e746f6b75776f726c642e636f6d2f696d616765732f6c6f676f2d696e76657273652e706e67)

Documentation
-------------

[](#documentation)

You can find the online document [here](https://apidocs.toku.co/).

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

[](#installation)

You can install the SDK using composer:

```
composer require toku/caas_sdk

```

Use command below to regenerate the classes installed:

```
composer dump-autoload

```

Quick Start - Call Handle
-------------------------

[](#quick-start---call-handle)

#### Autoloading

[](#autoloading)

Require/include autoloading if your PHP framework does not handle autoloading.

```
require __DIR__ . '/vendor/autoload.php';
```

#### Class

[](#class)

Use the call controller class to form call handle command

```
use \Toku\CaaS\V1\CallHandle\CallController;
```

#### Instance

[](#instance)

Create a new call controller instance

```
$ctrl = new CallController();
```

#### Call Handle Command

[](#call-handle-command)

Use the call controller to send call handle command such as PlayTTS command.

```
$ctrl->PlayTTS("This is a test message", "en", "f")->Response();
```

You can also send multiple command.

```
$ctrl->PlayTTS("This is a test message one", "en", "f")->
       PlayTTS("This is a test message two", "en", "f")->
       Response();
```

#### Sample Code

[](#sample-code)

```
