https://github.com/mhndev/messaging-sdk
php client for messaging service
https://github.com/mhndev/messaging-sdk
email-sender messaging php-client sms
Last synced: 7 months ago
JSON representation
php client for messaging service
- Host: GitHub
- URL: https://github.com/mhndev/messaging-sdk
- Owner: mhndev
- Created: 2017-04-13T09:01:04.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-04-13T11:16:34.000Z (almost 9 years ago)
- Last Synced: 2025-02-23T07:31:51.321Z (about 1 year ago)
- Topics: email-sender, messaging, php-client, sms
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Messaging Service Sdk (Client)
##### sample code
```php
$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'),
'
This is sample Email Message',
'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);
```