neolikotsi/php-smsportal

GuzzleHttp\Client

melusinenesmlp opened this issue · 5 comments

Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found in C:\xampp\htdocs\SMS\neolikotsi\smsportal\src\RestClient.php:31 Stack trace: #0 C:\xampp\htdocs\SMS\Index.php(13): NeoLikotsi\SMSPortal\RestClient->__construct('....', '...', 'https://rest.sm...') #1 {main} thrown in C:\xampp\htdocs\SMS\neolikotsi\smsportal\src\RestClient.php on line 31

Hi @melusinenesmlp update to release 1.0.10

you can append 'messages' array to send more messages in the same request. Remember to keep to the bulk size that the docs specify as the limit for 1 request.

$content = $message->getContent();

...
'messages' => [ 
  [
    'destination' => '1234567890',
    'content' => $content,
  ],
  [
    'destination' => '0123456789',
    'content' => $content,
  ],
]