PHPackages                             gsoftware/cloudsms-php - 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. gsoftware/cloudsms-php

ActiveLibrary[API Development](/categories/api)

gsoftware/cloudsms-php
======================

A PHP SDK for the CloudSMS API

v1.0.1(1y ago)01MITPHPPHP &gt;=7.4

Since Mar 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thiva7/cloudsms-phpSdk)[ Packagist](https://packagist.org/packages/gsoftware/cloudsms-php)[ Docs](https://cloudsms.gr)[ RSS](/packages/gsoftware-cloudsms-php/feed)WikiDiscussions main Synced 1mo ago

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

CloudSMS PHP SDK
================

[](#cloudsms-php-sdk)

A PHP SDK for the CloudSMS API, allowing you to easily integrate SMS functionality into your PHP applications.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Composer
- GuzzleHttp 7.0 or higher
- ext-json

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

[](#installation)

You can install the package via composer:

```
composer require gsoftware/cloudsms-php
```

Quick Start
-----------

[](#quick-start)

```
use GSoftware\CloudSMS\CloudSMSClient;

// Initialize the client
$client = new CloudSMSClient(
    'your-api-token',
    'your-sender-id'
);

// Check your balance
$balanceResponse = $client->getBalance();
if ($balanceResponse['status'] === 'success') {
    echo "Current balance: " . $balanceResponse['data'];
}

// Send an SMS
$smsResponse = $client->sendSMS(
    '+1234567890',
    'Hello from CloudSMS!'
);
if ($smsResponse['status'] === 'success') {
    echo "SMS sent successfully!";
} else {
    echo "Error: " . $smsResponse['message'];
}
```

Usage Examples
--------------

[](#usage-examples)

### Send SMS to Multiple Recipients

[](#send-sms-to-multiple-recipients)

```
$recipients = ['+1234567890', '+9876543210'];
$response = $client->sendSMS(
    $recipients,
    'Hello from CloudSMS!'
);
```

### Schedule an SMS

[](#schedule-an-sms)

```
$scheduleTime = new DateTime('2024-12-20 07:00:00');
$response = $client->sendSMS(
    '+1234567890',
    'This is a scheduled message',
    null, // Use default sender ID
    $scheduleTime
);
```

### Send Campaign to Contact Lists

[](#send-campaign-to-contact-lists)

```
$contactListIds = ['6415907d0d37a', '6415907d0d7a6'];
$response = $client->sendCampaign(
    $contactListIds,
    'This is a campaign message'
);
```

### Get SMS Details

[](#get-sms-details)

```
// Get details of a specific SMS
$smsDetails = $client->getSMS('606812e63f78b');
print_r($smsDetails);
```

### Get Campaign Details

[](#get-campaign-details)

```
$campaignDetails = $client->getCampaign('campaign_uid_here');
print_r($campaignDetails);
```

Response Format
---------------

[](#response-format)

All methods return an array with the following structure:

### Success Response

[](#success-response)

```
[
    'status' => 'success',
    'data' => 'response data here'
]
```

### Error Response

[](#error-response)

```
[
    'status' => 'error',
    'message' => 'A human-readable description of the error'
]
```

License
-------

[](#license)

This project is licensed under the MIT License.

Support
-------

[](#support)

For support, please visit  or contact .

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23c9c00a9d39e812f7f286a0dbecc1681a6f5a4eaad808d43b852a215867c36c?d=identicon)[gsoftware](/maintainers/gsoftware)

---

Top Contributors

[![thiva7](https://avatars.githubusercontent.com/u/73173892?v=4)](https://github.com/thiva7 "thiva7 (1 commits)")

---

Tags

apisdksmsmessagingcloudsms

### Embed Badge

![Health badge](/badges/gsoftware-cloudsms-php/health.svg)

```
[![Health](https://phpackages.com/badges/gsoftware-cloudsms-php/health.svg)](https://phpackages.com/packages/gsoftware-cloudsms-php)
```

###  Alternatives

[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)

PHPackages © 2026

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