Opensource php wrapper to WhatsApp Cloud API.

Overview

WhatsApp Latest Cloud API Wrapper for PHP

Latest Version on Packagist Total Downloads

Opensource php wrapper to WhatsApp Cloud API.

Features supported

  1. Sending messages
  2. Sending Media (images, audio, video and ducuments)
  3. Sending location
  4. Sending interactive buttons
  5. Sending template messages

Installation

You can install the package via composer:

composer require zepson/whatsappcloud-php

Usage

<?php

require_once 'vendor/autoload.php';
use zepson\Whatsapp\WhatsappClass;

$token = 'YOUR_META_WHATSAPP_APP_ACCESS_TOKEN';
$phone_number_id = '10726082513218961';
//send message
$tsap = new WhatsappClass( $phone_number_id, $token);

$sendtsap = $tsap->send_template('hello_world', '255654485755');
 
print_r($sendtsap);

All Available Methods

Send plain text

send_message($message, $recipient_id)

Send from template

send_template($template, $recipient_id, $lang = "en_US")

Send Location

 sendLocation($lat, $long, $name, $address, $recipient_id)

Send image

send_image($image, $recipient_id, $recipient_type = "individual", $caption = null, $link = true)

Send Audio

  send_audio($audio, $recipient_id, $link = true)

Send Video

send_video($video, $recipient_id, $caption = null, $link = true)

Send Document

send_document($document, $recipient_id, $caption = null, $link = true)

create button

create_button($button)

send button

    public function send_button($button, $recipient_id)

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Contribute to make more improvement and fix bugs.

Credits

License

The MIT License (MIT). Please see License File for more information.

You might also like...
A collection of samples that demonstrate how to call Google Cloud services from PHP.

PHP Docs Samples A collection of samples that demonstrate how to call Google Cloud services from PHP. See our other Google Cloud Platform github repos

Google Cloud Storage for PHP

Google Cloud Storage for PHP Idiomatic PHP client for Cloud Storage. API documentation NOTE: This repository is part of Google Cloud PHP. Any support

Google Cloud Orchestration Airflow for PHP

Google Cloud Orchestration Airflow for PHP Idiomatic PHP client for Google Cloud Orchestration Airflow. API documentation NOTE: This repository is par

Google Cloud Optimization for PHP

Google Cloud Optimization for PHP Idiomatic PHP client for Google Cloud Optimization. API documentation NOTE: This repository is part of Google Cloud

Idiomatic PHP client for Cloud Firestore.

Cloud Firestore for PHP Idiomatic PHP client for Cloud Firestore. API documentation NOTE: This repository is part of Google Cloud PHP. Any support req

Google Cloud Essential Contacts for PHP

Google Cloud Essential Contacts for PHP Idiomatic PHP client for Google Cloud Essential Contacts. API documentation NOTE: This repository is part of G

Google Cloud Eventarc Publishing for PHP

Google Cloud Eventarc Publishing for PHP Idiomatic PHP client for Google Cloud Eventarc Publishing. API documentation NOTE: This repository is part of

Google Cloud Database Migration Service for PHP

Google Cloud Database Migration Service for PHP Idiomatic PHP client for Google Cloud Database Migration Service. API documentation NOTE: This reposit

A simple Object Oriented wrapper for Linear API, written with PHP.

PHP Linear API A simple Object Oriented wrapper for Linear API, written with PHP. NOTE You should take a look Linear GraphQL API Schema for all nodes

Comments
Releases(1.0.0)
Owner
Novath Thomas
Novath Tarimo ceo-,Zepson Technologies And Software Engineer
Novath Thomas
A simple plugin that replaces the sms channel with Whatsapp Web channel through Wo-Wa Whatsapp service

Mautic Whatsapp Plugin This plugin replaces the SMS channel and allows you to send messages to Whatsapp using the Wo-Wa Whatsapp Web application. Inte

Joey Keller 9 Dec 16, 2022
Start using Whatsapp Business Cloud API in your app

Use The Most Used Whatsapp's Cloud API Start using Whatsapp Business Cloud API in your app! Support us Investing on this package is defintely a good m

Ricardo Sawir 15 Dec 14, 2022
Jéssica Paula 7 Aug 12, 2022
Opensource IPTV control panel

OpenSource IPTV copy .env.example to .env and edit to your environment composer install --no-dev php artisan sriptv:init Docker build: docker build .

Open source IPTV 10 Jan 3, 2023
Migration Tool for Magento Commerce (EE) to Magento OpenSource (CE)

Migration Tool for Magento Commerce to Magento OpenSource Also known as Magento Enterprise (EE) to Magento Community (CE). This migrating tool allows

OpenGento 38 Dec 28, 2022
Neo Integrator adalah alat bantu untuk import data ke Neo Feeder dengan cara copy paste saja. bersifat free dan opensource. Semoga Bermanfaat.

Neo-Integrator Penerus dari SimpleFeeder, yang berubah jadi Excel2Feeder dan bertransformasi menjadi Neo-integrator Last Update : 16-05-2022 Capture :

null 9 Nov 26, 2022
WeExpire is an opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are seriously injured

WeExpire is an opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are

Francesco 36 Nov 24, 2022
A Laravel Wrapper for the Binance API. Now easily connect and consume the Binance Public & Private API in your Laravel apps without any hassle.

This package provides a Laravel Wrapper for the Binance API and allows you to easily communicate with it. Important Note This package is in early deve

Moinuddin S. Khaja 7 Dec 7, 2022
Like Cloud Drive Run on Raspbian + Nginx + PHP

Raspberry-Pi-Cloud Like Cloud Drive Run on Raspbian + Nginx + PHP I Made a Project Called Raspberry-Pi-Cloud. it's on testing stage help me to test it

null 1 Dec 25, 2021
A collection of samples that demonstrate how to call Google Cloud services from PHP.

PHP Docs Samples A collection of samples that demonstrate how to call Google Cloud services from PHP. See our other Google Cloud Platform github repos

Google Cloud Platform 875 Dec 29, 2022