PHP code example of hyperzod / whatsapp-marketing-sdk-php
1. Go to this page and download the library: Download hyperzod/whatsapp-marketing-sdk-php 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/ */
hyperzod / whatsapp-marketing-sdk-php example snippets
// Creating data objects
$messageData = new UtilityMessageData(
'tenant123',
'template_abc',
'TEXT',
919876543210,
['1' => 'A1005', '2' => 'Accepted']
);
// Or from request data
$messageData = UtilityMessageData::fromArray($request->all());
// Using with services
$messageService->sendUtilityMessage($messageData->toArray());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.