PHPackages                             rootydev/giant-sms-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. [HTTP &amp; Networking](/categories/http)
4. /
5. rootydev/giant-sms-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rootydev/giant-sms-php
======================

A standalone PHP package for sending SMS with Giant SMS API.

20PHP

Since Jun 10Pushed 11mo agoCompare

[ Source](https://github.com/benaduo/giant-sms-client-php)[ Packagist](https://packagist.org/packages/rootydev/giant-sms-php)[ RSS](/packages/rootydev-giant-sms-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GiantSMS PHP Package
====================

[](#giantsms-php-package)

A standalone PHP package for sending SMS with Giant SMS API.

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

[](#installation)

You can install the Giant SMS Client package using Composer. Run the following command in your terminal:

```
composer require rootydev/giant-sms-php

```

This library requires API authentication credentials in order to function. Get your credentials from [GiantSMS.com](https://giantsms.com)

Usage
-----

[](#usage)

To use the GiantSMS Client, include the autoload file and create an instance of the `GiantSmsClient` class:

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

use RootyDev\GiantSmsClient;

$smsClient = new GiantSmsClient();
$smsClient->sendSms('recipient_number', 'Your message here');
```

Full API Usage
--------------

[](#full-api-usage)

First, include Composer's autoloader and import the client:

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

use RootyDev\GiantSmsClient\GiantSmsClient;

$smsClient = new GiantSmsClient('your_username', 'your_password', 'YourSenderId', 'your_token');
```

### Sending a Single SMS

[](#sending-a-single-sms)

```
$response = $smsClient->sendSingleSms('recipient_number', 'Your message here');
if ($response->getStatus()) {
    echo "Message sent! ID: " . $response->getMessageStatus()->getMessageId();
} else {
    echo "Error: " . $response->getMessage();
}
```

### Checking Message Status

[](#checking-message-status)

```
$status = $smsClient->checkMessageStatus('message_id');
if ($status->getStatus()) {
    echo "Status: " . $status->getMessageStatus()->getStatus();
} else {
    echo "Error: " . $status->getMessage();
}
```

### Getting Account Balance

[](#getting-account-balance)

```
$balance = $smsClient->balance();
echo $balance->getMessage();
```

### Registering a Sender ID

[](#registering-a-sender-id)

```
$result = $smsClient->registerSenderId('MySender', 'Transactional');
echo $result->getMessage();
```

### Getting Sender IDs

[](#getting-sender-ids)

```
$senderIds = $smsClient->getSenderIds();
foreach ($senderIds->getSenderIds() as $sender) {
    echo $sender['name'] . " - " . $sender['approval_status'] . PHP_EOL;
}
```

### Sending Bulk SMS

[](#sending-bulk-sms)

```
$numbers = ['1234567890', '0987654321'];
$response = $smsClient->sendBulkSms($numbers, 'Bulk message');
echo $response->getMessage();
```

### Sending SMS with Token

[](#sending-sms-with-token)

```
$response = $smsClient->sendMessageWithToken('recipient_number', 'Message with token');
echo $response->getMessage();
```

Running Tests
-------------

[](#running-tests)

To run the tests for the SMS Client, use the following command:

```
vendor/bin/phpunit tests/GiantSmsClientTest.php

```

Contributing
------------

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.

License
-------

[](#license)

This project is licensed under the MIT License. See the LICENSE file for more details.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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://www.gravatar.com/avatar/949573f57920ed57c09c4b9173398551a165c439c1f37f9a1c092ddfe11bfc91?d=identicon)[benaduo14](/maintainers/benaduo14)

---

Tags

bulksmsgiantsms

### Embed Badge

![Health badge](/badges/rootydev-giant-sms-php/health.svg)

```
[![Health](https://phpackages.com/badges/rootydev-giant-sms-php/health.svg)](https://phpackages.com/packages/rootydev-giant-sms-php)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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