mhndev / messaging-sdk
Messaging Sdk
dev-develop
2017-04-13 11:16 UTC
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: 6.*
- mhndev/value-objects: 1.0.*
Requires (Dev)
- phpunit/phpunit: 6.*
This package is auto-updated.
Last update: 2024-11-06 10:11:13 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);