WhatsApp PHP API

Requires PHP 7.4+ with the cURL and JSON extensions.

See the Laravel guide and the free WordPress plugin for WooCommerce order messages.

Incoming messages, delivery and read receipts arrive as JSON webhooks. Read the body with file_get_contents('php://input'), decode it with json_decode, verify it as described in the docs, then reply quickly with HTTP 200 and do slow work in a queue.

Add imageUrl or documentUrl and fileName to the JSON body. The file must be reachable over HTTPS; WAservix downloads it and sends it as a WhatsApp attachment, with text as the caption.

Which PHP version is needed?

PHP 7.4 or newer.

Is there a Composer package?

Yes: composer require tekservix/waservix.

Does it work on shared hosting?

Yes, if outgoing HTTPS requests are allowed.

More about WAservix: WAservix overview · WhatsApp API · WhatsApp Business API · WhatsApp API pricing · Free WhatsApp API trial · Send messages by API · WhatsApp link generator · WAservix vs Cloud API · API documentation guide · WhatsApp API providers · Alternatives · WhatsApp bot API · Integrations · Bulk messaging · Use cases · Calling API · Developer docs