smsalert-mobi / smsalert-php
PHP integration for SMSAlert.mobi API SMS Gateway
Installs: 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/smsalert-mobi/smsalert-php
Requires
- php: 7.4.* || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.4
README
Documentation
The documentation for the SMSAlert API can be found here.
The PHP library documentation can be found here.
This library supports the following PHP implementations:
- PHP 7.4 | ^8.0
Installation
You can install smsalert-phpp via composer or by downloading the source.
Via Composer:
smsalert-php is available on Packagist as the
smsalert-mobi/smsalert-php package:
composer require smsalert-mobi/smsalert-php
Quickstart
Send an SMS
// Send an SMS using SMSAlert's REST API and PHP <?php $username = "demo"; // Your account username $apiKey = "api_key_here"; // Your account apiKey from https://smsalert.mobi/settings $client = new SmsAlert\SmsClient($username, $apiKey); $messageId = $client->sendSms('0720123456', 'test api'); echo $messageId;
Getting help
If you need help installing or using the library, you can contact us at contact@smsalert.mobi If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!