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.
The MessageBird SMS API Client Library enables you send SMS messages using the Messagebird.com API.
- PHP 5.1 or higher
- JSON extension (bundled and compiled by default since PHP 5.2.0)
- fsockopen should be enabled
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.
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');
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
The MessageBird SMS API Client for PHP is licensed under BSD (Berkeley Software Distribution) License. Copyright (c) 2014, MessageBird