mhndev/messaging-sdk

dev-develop 2017-04-13 11:16 UTC

This package is auto-updated.

Last update: 2024-10-06 10:00:57 UTC


README

Messaging Service Sdk (Client)

sample code
$sms = new \mhndev\messagingSdk\Sms(
    'Hi, how you doing man?',
    new \mhndev\valueObjects\implementations\MobilePhone('09124971706')
);


$email = new \mhndev\messagingSdk\Email(
    new \mhndev\valueObjects\implementations\Email('majid8911303@gmail.com'),
    '<div style="color:white; background-color: black">This is sample Email Message</div>',
    'test Email',
    new \mhndev\valueObjects\implementations\Email('majid@gmail.com')
    
);

$client = new \mhndev\messagingSdk\Client(
    new \GuzzleHttp\Client(),
    'http://example.com/send-sms',
    'http://example.com/send-email'
);

$client->sendSms($sms);

$client->sendEmail($email);