PHP code example of arklemx / orange-money
1. Go to this page and download the library: Download arklemx/orange-money library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
arklemx / orange-money example snippets
// Initialize the MessageBird
MessageBird::__construct("acessKey", "originator");
// Or create a component to use it
// send a message to a single receiver
$response = MessageBird::send(["+237653214587"], "My First SMS");
//Or
// set a list of receivers / recipients
$receivers = [
"receiver1",
"receiver2",
"receiver3",
...
]
// and then make a single call to send
$response = MessageBird::send(["+237653214587"], "Send Many SMS");