PHPackages                             xoxzo/cloudphp - 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. xoxzo/cloudphp

ActiveLibrary

xoxzo/cloudphp
==============

Xoxzo telephony library

1.0.1(8y ago)235[1 issues](https://github.com/xoxzo/xoxzo.cloudphp/issues)1PHP

Since Dec 15Pushed 8y ago6 watchersCompare

[ Source](https://github.com/xoxzo/xoxzo.cloudphp)[ Packagist](https://packagist.org/packages/xoxzo/cloudphp)[ RSS](/packages/xoxzo-cloudphp/feed)WikiDiscussions master Synced 1mo ago

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

xoxzo.cloudphp
==============

[](#xoxzocloudphp)

This is the PHP client library for Xoxzo Cloud API. You can send sms or make a phone call and playback mp3 files.

Sample Code
-----------

[](#sample-code)

### Send SMS

[](#send-sms)

```
use xoxzo\cloudphp\XoxzoClient;

$sid = ;
$auth_token =
$recipient = '+818012345678';
$sender = '818012345678';
$message = 'Hello form Xoxzo PHP lib';

$xc = new XoxzoClient($sid,$auth_token);
$resp = $xc->send_sms($message, $recipient,$sender);
if ($resp->errors != null){
  print "Error status: $resp->errors\n";
  return;
}

$msgid = $resp->messages[0]->msgid;
$resp = $xc->get_sms_delivery_status($msgid);
var_dump($resp);

```

#### Explanation

[](#explanation)

- First, you need to create `XoxzoClient()` object. You must provide xoxzo sid and auth\_token when initializing this object. You can get sid and auth\_token after you sign up the xoxzo account and access the xoxzo dashboard.
- Then you can call `send_sms()` method. You need to provide three parameters.

    - message: sms text you want to send.
    - recipient: phone number of the sms recipient. This must start with Japanese country code "+81" and follow the E.164 format.
    - sender: this number will be displayed on the recipient device.
- This method will return `XoxzoResponse` object. If `XoxzoResponse.errors == null`, `XoxzoResponse->messages[0]->msgid` is the meesage id that you can pass to the `get\_sms\_delivery\_status() call.
- You can check the sms delivery status by `get_sms_delivery_status()` method. You will provide message-id of the sms you want to check.

---

### Playback MP3

[](#playback-mp3)

```
use xoxzo\cloudphp\XoxzoClient;

$sid = ;
$auth_token = ;
$recipient = '+818012345678';
$recording_url = 'http://exmaple.com/exmaple.mp3';
$caller = '8108012345678';

$xc = new XoxzoClient($sid, $auth_token);

$resp = $xc->call_simple_playback($caller, $recipient, $recording_url);

if ($resp->errors != null){
  print "Error status: $resp->errors\n";
  return;
}

$callid = $resp->messages[0]->callid;
$resp = $xc->get_simple_playback_status($callid);
var_dump($resp);

```

#### Explanation

[](#explanation-1)

- You can call `call_simple_playback()` method to playback MP3 files. You need to provide three parameters.

    - caller: this number will be displayed on the recipient device.
    - recording\_url: MP3 file URL.
    - recipient: phone number of the sms recipient. This must start with Japanese country code "+81" and follow the E.164 format.
- This method will return `XoxzoResponse` object. If `XoxzoResponse.errors == null`, `XoxzoResponse->messages[0]->callid` is the call id that you can pass to the `get\_simple\_playback\_status() call.
- You can check the call status by `get_simple_playback_status()` method. You will provide call-id of the phone call you want to check.

---

### Playback TTS

[](#playback-tts)

```
use xoxzo\cloudphp\XoxzoClient;

$sid = ;
$auth_token = ;
$recipient = '+818012345678';
$tts_message = 'Hello';
$tts_lang = 'en';
$caller = '8108012345678';

$xc = new XoxzoClient($sid, $auth_token);

$resp = $xc->call_tts_playback($caller, $recipient, $tts_message, $tts_lang);

if ($resp->errors != null){
  print "Error status: $resp->errors\n";
  return;
}

$callid = $resp->messages[0]->callid;
$resp = $xc->get_simple_playback_status($callid);
var_dump($resp);

```

#### Explanation

[](#explanation-2)

- You can call `call_tts_playback()` method to playback TTS message. You need to provide four parameters.

    - caller: this number will be displayed on the recipient device.
    - tts\_message: TTS text message you want to playback.
    - tts\_lang: language code of TTS call.
    - recipient: phone number of the sms recipient. This must start with Japanese country code "+81" and follow the E.164 format.
- This method will return `XoxzoResponse` object. If `XoxzoResponse.errors == null`, `XoxzoResponse->messages[0]->callid` is the call id that you can pass to the `get\_simple\_playback\_status() call.
- You can check the call status by `get_simple_playback_status()` method. You will provide call-id of the phone call you want to check.

---

### DIN (Dial in numbers)

[](#din-dial-in-numbers)

### Subscribe DIN

[](#subscribe-din)

```
$resp = $xc->get_din_list();
$a_din_uid = $resp->messages[0]->din_uid;
$resp = $xc->subscribe_din($a_din_uid);

```

#### Explanation

[](#explanation-3)

1. In order to subscribe DIN, you must find available unsubscribed DINs using get\_din\_list() method.
2. Then you subscribe a DIN via subscribe\_din() method specifying din unique id.

### Set action URL

[](#set-action-url)

```
$sample_acrion_url = "http://example.com/dummy_url";
$resp = $xc->set_action_url($a_din_uid, $sample_acrion_url);

```

#### Explanation

[](#explanation-4)

1. Once you subscribed the DIN, you can set action url to the DIN. This URL will be called in the event of the DIN gets called. The URL will called by http GET method with the parameters, caller and recipient.

### Get the list of subscription:

[](#get-the-list-of-subscription)

```
$resp = $this->xc->get_subscription_list();

```

### Explanation

[](#explanation-5)

In order to get the list of current subscriptions, you can call the method above.

### Unsubscribe DIN:

[](#unsubscribe-din)

```
$resp = $this->xc->unsubscribe_din($a_din_uid);

```

### Explanation

[](#explanation-6)

When you no longer use DIN, you can unsubscribe the DIN by specifying the din unique id.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 62% 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 ~24 days

Total

2

Last Release

3044d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bf552b6e89e17c4737aad8d78b14a8dfab0cefb0fd1f3ae3b57d79229797438?d=identicon)[hyejeongpark](/maintainers/hyejeongpark)

---

Top Contributors

[![anonaka](https://avatars.githubusercontent.com/u/183960?v=4)](https://github.com/anonaka "anonaka (31 commits)")[![hyejeongpark](https://avatars.githubusercontent.com/u/11953503?v=4)](https://github.com/hyejeongpark "hyejeongpark (18 commits)")[![k4ml](https://avatars.githubusercontent.com/u/116353?v=4)](https://github.com/k4ml "k4ml (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xoxzo-cloudphp/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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