Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ vendor
.php-cs-fixer.cache
.phpunit.cache
composer.lock
test-request.php
playground.php
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
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

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

This package requires PHP 8.3 or higher.
Expand Down
12 changes: 10 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

All notable changes to `phpjuice/wati-http-client` will be documented in this file.

## 1.0.1 - 2026-02-20
## 1.0.3

- Add `WatiResponse` - Base response class

## 1.0.2

- Add pint formatting rules

## 1.0.1

- Custom exceptions for error handling:
- `WatiException` - Base exception
Expand All @@ -14,6 +22,6 @@ All notable changes to `phpjuice/wati-http-client` will be documented in this fi
- Proper tenant ID handling in URLs with trailing slash preservation
- Request path normalization for correct URI resolution with base URLs containing paths

## 1.0.0 - 2026-02-20
## 1.0.0

- Initial release of Wati HTTP Client (PHP 8.3+ support)
10 changes: 10 additions & 0 deletions src/WatiResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

namespace Wati\Http;

use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;

abstract class WatiResponse extends Response implements ResponseInterface {}