fingergiant / giantsms-api
PHP API library for Giant SMS
v1.0.3
2024-10-17 15:51 UTC
Requires
- php: >=7.4
- php-curl-class/php-curl-class: ^11.0.0
This package is auto-updated.
Last update: 2025-06-17 17:36:15 UTC
README
PHP library for making API requests to GiantSMS bulk messaging platform
Installation
To install GiantSMS PHP Library, simply:
$ composer require fingergiant/giantsms-api
Requirements
GiantSMS PHP Library works with PHP >= 5.3.
This library requires API authentication credentials in order to function. Get your credentials from GiantSMS.com
Usage
- Send a message
use BulkSMS\GiantSMS; $sms = new GiantSMS('xxxxxxxxx', 'xxxxxx'); // API username & secret var_dump($sms->send('Hello there', '+233XXXXXXXXX', 'Tester')); // message, recipient, sender
- Check balance
use BulkSMS\GiantSMS; $sms = new GiantSMS('xxxxxxxxx', 'xxxxxx'); // API username & secret var_dump($sms->balance());
Contribute
- Check for open issues or open a new issue to start a discussion around a bug or feature.
- Fork the repository on GitHub to start making your changes.
- Write one or more tests for the new feature or that expose the bug.
- Make code changes to implement the feature or fix the bug.
- Send a pull request to get your changes merged and published.