1. Go to this page and download the library: Download emanate/beem 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/ */
emanate / beem example snippets
return [
'api_key' => env('BEEM_SMS_API_KEY', ''),
'secret_key' => env('BEEM_SMS_SECRET_KEY', ''),
'sender_name' => env('BEEM_SMS_SENDER_NAME', 'INFO'),
/*
* If set to true, the phone addresses will be validated before sending the SMS.
* This will throw an exception if the phone number is invalid.
* Set it to false, if you don't want phone addresses validation.
*/
'validate_phone_addresses' => true,
/*
* Path to the class that handles the Phone Address Validation. Ensure correct mapping of your custom validator class by updating
* The 'validator_class' configuration to point to the appropriate namespace and class name.
* Please make sure the custom validator class implements the namespace Emanate\BeemSms\Contracts\Validator interface
*/
'validator_class' => \Emanate\BeemSms\DefaultValidator::class,
/*
* Beem Sms Sending SMS URL. You can change this by using a different URL.
*/
'sending_sms_url' => 'https://apisms.beem.africa/v1/send',
];
use Emanate\BeemSms\Facades\BeemSms;
BeemSms::content('Your message here')->loadRecipients(User::all())->send();