1. Go to this page and download the library: Download manthan/nuncio 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/ */
manthan / nuncio example snippets
use Manthan\Nuncio\Nuncio
class SMSNotifier extends Nuncio
{
protected $keywords = array('name', 'fees');
}
$SMS_Service = new TwilioService() // This must implement Manthan\Nuncio\MessengerInterface
$processor = new Manthan\Nuncio\MessageProcessor();
$notifier = new SMSNotifier($SMS_Service, $processor);
$user = new stdClass();
$user->name = "Manthan";
$user->fees = "1500";
$user->number = "78787878";
$recepients = [$user];
$notifier->from('YOUR-NUMBER')->to($recepients)->send($subject, $message);
use Manthan\Nuncio\Nuncio
class SMSNotifier extends Nuncio
{
protected $keywords = array('name', 'fees');
// Suppose your user's phone number is denoted by its phone_number property
protected $number_field = 'phone_number';
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.