PHPackages                             sdksio/whatsapp-cloud-api-sdk - 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. [API Development](/categories/api)
4. /
5. sdksio/whatsapp-cloud-api-sdk

ActiveLibrary[API Development](/categories/api)

sdksio/whatsapp-cloud-api-sdk
=============================

Use cloud-hosted version of the WhatsApp Business API to send and receive messages

1.0.0(2y ago)139MITPHPPHP ^7.2 || ^8.0

Since Jun 8Pushed 2y agoCompare

[ Source](https://github.com/sdks-io/whatsapp-cloud-api-php-sdk)[ Packagist](https://packagist.org/packages/sdksio/whatsapp-cloud-api-sdk)[ Docs](https://www.apimatic.io/apidocs/whatsapp-api/v/1_0#/php)[ RSS](/packages/sdksio-whatsapp-cloud-api-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Getting Started with WhatsApp Cloud API
=======================================

[](#getting-started-with-whatsapp-cloud-api)

Introduction
------------

[](#introduction)

Welcome to the WhatsApp API from Meta.

Individual developers and existing Business Service Providers (BSPs) can now send and receive messages via the WhatsApp API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective way for businesses to use WhatsApp. Please keep in mind the following configurations:

NameDescriptionVersionLatest [Graph API version](https://developers.facebook.com/docs/graph-api/). For example: v13.0User-Access-TokenYour user access token after signing up at [developers.facebook.com](https://developers.facebook.com).WABA-IDYour WhatsApp Business Account (WABA) ID.Phone-Number-IDID for the phone number connected to the WhatsApp Business API. You can get this with a [Get Phone Number ID request](3184f675-d289-46f1-88e5-e2b11549c418).Business-IDYour Business' ID. Once you have your Phone-Number-ID, make a [Get Business Profile request](#99fd3743-46cf-46c4-95b5-431c6a4eb0b0) to get your Business' ID.Recipient-Phone-NumberPhone number that you want to send a WhatsApp message to.Media-IDID for the media to [send a media message](#0a632754-3788-43bf-b785-ac6a73423d5a) or [media template message](#439c926a-8a6c-4972-ab2c-d99297716da9) to your customers.Media-URLURL for the media to [download media content](#cbe5ece3-246c-48f3-b338-074187dfef66).Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "sdksio/whatsapp-cloud-api-sdk:1.0.0"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "sdksio/whatsapp-cloud-api-sdk": "1.0.0"
}
```

You can also view the package at:

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescription`version``string`*Default*: `'v13.0'``environment`EnvironmentThe API environment.
 **Default: `Environment.PRODUCTION`**`timeout``int`Timeout for API calls in seconds.
*Default*: `0``enableRetries``bool`Whether to enable retries and backoff feature.
*Default*: `false``numberOfRetries``int`The number of retries to make.
*Default*: `0``retryInterval``float`The retry time interval between the endpoint calls.
*Default*: `1``backOffFactor``float`Exponential backoff factor to increase interval between retries.
*Default*: `2``maximumRetryWaitTime``int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0``retryOnTimeout``bool`Whether to retry on request timeout.
*Default*: `true``httpStatusCodesToRetry``array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524``httpMethodsToRetry``array`Http methods to retry against.
*Default*: `'GET', 'PUT'``accessToken``string`The OAuth 2.0 Access Token to use for API requests.The API client can be initialized as follows:

```
$client = WhatsAppCloudAPIClientBuilder::init()
    ->accessToken('AccessToken')
    ->environment('production')
    ->version('v13.0')
    ->build();
```

Authorization
-------------

[](#authorization)

This API uses `OAuth 2 Bearer token`.

List of APIs
------------

[](#list-of-apis)

- [Business Profiles](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/controllers/business-profiles.md)
- [Phone Numbers](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/controllers/phone-numbers.md)
- [Two-Step Verification](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/controllers/two-step-verification.md)
- [Messages](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/controllers/messages.md)
- [Registration](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/controllers/registration.md)
- [Media](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/controllers/media.md)

Classes Documentation
---------------------

[](#classes-documentation)

- [ApiException](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/api-exception.md)
- [HttpRequest](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/http-request.md)
- [HttpResponse](https://www.github.com/sdks-io/whatsapp-cloud-api-php-sdk/tree/1.0.0/doc/http-response.md)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1074d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef06f97b4ff5db714f2a124525216538f97338487cd4e2bca22baa32c0bf90cd?d=identicon)[developer-sdksio](/maintainers/developer-sdksio)

---

Top Contributors

[![developer-sdksio](https://avatars.githubusercontent.com/u/135820708?v=4)](https://github.com/developer-sdksio "developer-sdksio (1 commits)")

---

Tags

apimessageswhatsappchat-sdkwhatsapp-apiwhatsapp-sdk

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sdksio-whatsapp-cloud-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/sdksio-whatsapp-cloud-api-sdk/health.svg)](https://phpackages.com/packages/sdksio-whatsapp-cloud-api-sdk)
```

###  Alternatives

[square/square

Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.

793.4M21](/packages/square-square)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[jhowbhz/package-apigratis

Uma forma simples de consumir serviços gratuitos oferecidos pelo site https://apigratis.com.br/

505.2k](/packages/jhowbhz-package-apigratis)[messagemedia/messages-sdk

The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.

13390.6k](/packages/messagemedia-messages-sdk)[jhowbhz/apigratis-sdk-php

This package is free and can be used for API Brazil website functions

183.6k](/packages/jhowbhz-apigratis-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
