PHPackages                             phpjuice/wati-http-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. phpjuice/wati-http-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

phpjuice/wati-http-client
=========================

PHP Http Client for Wati.io WhatsApp API

v1.0.4(2mo ago)0471MITPHPPHP ^8.3 || ^8.4CI passing

Since Feb 20Pushed 2mo agoCompare

[ Source](https://github.com/phpjuice/wati-http-client)[ Packagist](https://packagist.org/packages/phpjuice/wati-http-client)[ Docs](https://github.com/phpjuice/wati-http-client)[ RSS](/packages/phpjuice-wati-http-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (6)Used By (1)

Wati HTTP Client
================

[](#wati-http-client)

[![CI](https://github.com/phpjuice/wati-http-client/actions/workflows/php.yml/badge.svg)](https://github.com/phpjuice/wati-http-client/actions/workflows/php.yml)[![PHP Version](https://camo.githubusercontent.com/358e85baf99de9fdc7bdb97daf7b7b2a9b16bae81f67f4e914f42c83cd4910d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e33253230253743253230382e342d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)[![Latest Stable Version](https://camo.githubusercontent.com/5262a70873aaa86eafbfbf92d357d87182b21b9cb456f3342d53e68ff85d1594/687474703a2f2f706f7365722e707567782e6f72672f7068706a756963652f776174692d687474702d636c69656e742f76)](https://packagist.org/packages/phpjuice/wati-http-client)[![Total Downloads](https://camo.githubusercontent.com/9ce62f03a6455e89ae355fd81ce3e0ba165cce395863717a406faa4487e9914f/687474703a2f2f706f7365722e707567782e6f72672f7068706a756963652f776174692d687474702d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/phpjuice/wati-http-client)[![License](https://camo.githubusercontent.com/1a2e0606685ce00663bf829868f794fd3fc9c86f8d80cae324734129e0723a58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e737667)](https://opensource.org/licenses/MIT)[![PRs Welcome](https://camo.githubusercontent.com/dd0b24c1e6776719edb2c273548a510d6490d8d25269a043dfabbd38419905da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667)](./.github/CONTRIBUTING.md)

A PHP HTTP Client for the [Wati.io](https://wati.io) WhatsApp API. Provides a simple, fluent API to interact with Wati's REST API.

Related Packages
----------------

[](#related-packages)

For a higher-level, feature-rich integration, consider using [wati-sdk](https://github.com/phpjuice/wati-sdk). It provides ready-to-use request classes, response DTOs, and additional convenience features built on top of this HTTP client.

Installation
------------

[](#installation)

This package requires PHP 8.3 or higher.

```
composer require "phpjuice/wati-http-client"
```

Setup
-----

[](#setup)

### Get Your Credentials

[](#get-your-credentials)

1. Log in to your [Wati Account](https://app.wati.io)
2. Navigate to **API Docs** in the top menu
3. Copy your **API Endpoint URL** and **Bearer Token**

### Create a Client

[](#create-a-client)

```
