desenlike/sendtudophp

PHP Package to send Whatsapp messages via SendTudo

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/desenlike/sendtudophp

0.0.1 2022-10-27 18:05 UTC

This package is auto-updated.

Last update: 2025-09-28 00:29:35 UTC


README

PHP Package to send Whatsapp messages via SendTudo

Install

  composer require desenlike/sendtudophp

Send Message Example:

Simple Message Example:

use Desenlike\\Sendtudophp\\SendWhatsappMessage;

$sendWhatsappMessage = new SendWhatsappMessage("your-private-key", "your-public-key");

$to = '99999999999'; // recipient Whatsapp number
$message = 'your message'; 

// the sendMessage method returns boolean value
$returnData = $sendWhatsappMessage->sendMessage($to, $message);

Example of Message Using Template created in http://web.sendtudo.com.br:

use Desenlike\\Sendtudophp\\SendWhatsappMessage;

$sendWhatsappMessage = new SendWhatsappMessage("your-private-key", "your-public-key");

$to = '99999999999'; // recipient Whatsapp number
$templateId = 'id-of-the-template'; 

// custom params to replace variables created in the template
$customParams = [
    "name" => "John",
    "age" => 20,
    ...
];
// the sendTemplateMessage method returns boolean value
$sendWhatsappMessage->sendTemplateMessage($to, $templateId, $customParams);

Author

  • Érick Nilson Souza Sodré Filho (Desenlike)

License

  • MIT