emizoripx/many-contacts

Library to integrate the Many Contacts service

v0.2.3 2024-05-10 19:17 UTC

This package is auto-updated.

Last update: 2024-05-10 19:18:45 UTC


README

Package for sending Whatsapp messages with the ManyContacts service.

Supports

  • Send whatsapp text messages.

Configure

Before use, you must configure the following parameters

  • In the .env file of the project copy and set the following environment variables
    MANYCONTACTS_API_HOST=
    MANYCONTACTS_API_TOKEN=

Usage

  • To send a message just call the Facade EmizorIpx\ManyContacts\Facades\ManyContacts to method sendTextMessage and specify the required parameters
    
    use EmizorIpx\ManyContacts\Facades\ManyContacts;

    $response = ManyContacts::sendTextMessage($number_phone, $data);