mobiletulip / messagebird-sms-api-bundle
Implements the MessageBird SMS gateway
Installs: 108 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 4
Forks: 7
Open Issues: 0
This package is not auto-updated.
Last update: 2021-05-14 22:02:38 UTC
README
We've released a new MessageBird REST API: https://www.messagebird.com/developers/php Please use the new repository for new projects and contributions. Note that old API's (like this one) will still be actively supported in the future.
MessageBird SMS API Client for PHP
The MessageBird SMS API Client Library enables you send SMS messages using the Messagebird.com API.
Requirements
- PHP 5.1 or higher
- JSON extension (bundled and compiled by default since PHP 5.2.0)
- fsockopen should be enabled
Installation
The recommended way to install the library is through Composer. Just create a
composer.json
file and run the php composer.phar install
command to
install it:
{
"require": {
"mobiletulip/messagebird-sms-api-bundle": "~1.4"
}
}
Alternatively, you can download a zip archive and extract it.
Basic Example
A more extended example, which shows more features of the API is available in example.php and example_form.php
$sms = new MessageBird('username', 'password');
$sms->setSender('YourSender');
$sms->addDestination('31600000000');
$sms->sendSms('This is a test message');
Developer documentation
For technical documentation see:
- English: https://www.messagebird.com/download/technical_documentation_en.pdf
- Dutch: https://www.messagebird.com/download/technical_documentation_nl.pdf
- http://www.messagebird.com/sms-api
License
The MessageBird SMS API Client for PHP is licensed under BSD (Berkeley Software Distribution) License. Copyright (c) 2014, MessageBird