PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Mateo   PHP WhatsApp API   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP WhatsApp API
Send message to WhatsApp user with its API
Author: By
Last change:
Date: 9 months ago
Size: 251 bytes


Class file image Download

use Mateodioev\WhatsappApi\{Api, Messages};

__DIR__ . '/vendor/autoload.php';

$token = "your token";
$api = new Api($token, 11111111111);

$msg = new Messages($api);


var_dump($msg->sendText('Hola', true));