fingergiant/giantsms-api

PHP API library for Giant SMS

v1.0.3 2024-10-17 15:51 UTC

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

GiantSMS.com

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

  1. Check for open issues or open a new issue to start a discussion around a bug or feature.
  2. Fork the repository on GitHub to start making your changes.
  3. Write one or more tests for the new feature or that expose the bug.
  4. Make code changes to implement the feature or fix the bug.
  5. Send a pull request to get your changes merged and published.