PHPackages                             waeasyapi/waeasyapi - 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. waeasyapi/waeasyapi

ActiveLibrary[API Development](/categories/api)

waeasyapi/waeasyapi
===================

WAEasyAPI PHP Client Library

00PHP

Since Jul 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/waeasyapi/waeasyapi-php)[ Packagist](https://packagist.org/packages/waeasyapi/waeasyapi)[ RSS](/packages/waeasyapi-waeasyapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WA Easy API PHP Library
=======================

[](#wa-easy-api-php-library)

[![Stable](https://camo.githubusercontent.com/852471b451f9b28d5fd7090c23a46697f2ea1f8fff3bf500b6b4e228c4727675/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d76312e302e302d626c75652e737667)](https://packagist.org/packages/waeasyapi/waeasyapi#2.8.0) [![License](https://camo.githubusercontent.com/9d2ca4c5c8ddd62748be3c480ee778978e13429f2bc404c4649b0d59a7839975/68747470733a2f2f706f7365722e707567782e6f72672f7761656173796170692f7761656173796170692f6c6963656e73652e737667)](https://packagist.org/packages/waeasyapi/waeasyapi)

Official PHP library for [WAEasyAPI](https://waeasyapi.com/).

Read up here for getting started and understanding the payment flow with WAEasyAPI:

### Prerequisites

[](#prerequisites)

- A minimum of PHP 7.3 upto 8.1

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

[](#installation)

- If your project using composer, run the below command

```
composer require waeasyapi/waeasyapi

```

- If you are not using composer, download the latest release from [the releases section](https://github.com/waeasyapi/waeasyapi-php/releases). **You should download the `waeasyapi-php.zip` file**. After that, include `WAEasyAPI.php` in your application and you can use the API as usual.

\##Note: This PHP library follows the following practices:

- Namespaced under `WAEasyAPI\Api`
- API throws exceptions instead of returning errors
- Options are passed as an array instead of multiple arguments wherever possible
- All requests and responses are communicated over JSON

Documentation
-------------

[](#documentation)

Documentation of WAEasyAPI's API and their usage is available at

Basic Usage
-----------

[](#basic-usage)

Instantiate the waeasyapi php instance with `acc_id` &amp; `acc_secret`. You can obtain the keys from the dashboard ()

```
use WAEasyAPI\Api\Api;

$api = new Api($acc_id, $acc_secret);
```

The resources can be accessed via the `$api` object. All the methods invocations follows the following pattern

```
    // number must start with the country's dialing code
    // Example - For USA: 158883993
    // Example - For India: 919876543210

    // Example - Send Text Message
    $api->message->sendTextMessage(
      array('number' => $number, 'message' => $message)
    );

    // Example - Send Template Message
    $api->message->sendTemplateMessage(
      array('number' => $number, 'template' => $template, 'params' => array())
    );

    // Example - Send Image Message
    $api->message->sendImageMessage(
      array('number' => $number, 'params' => array('link' => 'image_url'))
    );

    // Example - Send Video Message
    $api->message->sendVideoMessage(
      array('number' => $number, 'params' => array('link' => 'video_url'))
    );

    // Example - Send Audio Message
    $api->message->sendAudioMessage(
      array('number' => $number, 'params' => array('link' => 'audio_url'))
    );

    // Example - Send Document Message
    $api->message->sendDocumentMessage(
      array('number' => $number, 'params' => array('link' => 'document_url'))
    );

    // Example - Send URL Message
    $api->message->sendURLMessage(
      array('number' => $number, 'url' => 'https://waeasyapi.com')
    );

    // Example - Send Contact Message
    $contacts = array(
      array(
        'name' => array(
          'formatted_name' => 'Robin White', // required
          'first_name' => 'Robin', // optional
          'last_name' => 'White' // optional
        ),

        'phones' => array(
          array(
            'phone' => '+18787878787', // required
            'wa_id' => '18787878787' // optional
          )
        ),

        // emails optional
        'emails' => array(
          array(
            'email' => 'team@waeasyapi.com'
          )
        )
      )
    );
    $api->message->sendContactMessage(
      array('number' => $number, 'params' => $contacts)
    );

    // Example - Send Location Message
    $location = array(
      'longitude' => -122.425332,
      'latitude' => 37.758056,
      'name' => 'Facebook HQ',
      'address' => '1 Hacker Way, Menlo Park, CA 94025'
    );
    $api->message->sendLocationMessage(
      array('number' => $number, 'params' => $location)
    );

    // Example - Send Interactive Message
    $api->message->sendInteractiveMessage(
      array('number' => $number, 'params' => array())
    );
```

License
-------

[](#license)

The WAEasyAPI PHP SDK is released under the MIT License. See [LICENSE](LICENSE) file for more details.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d62ca0156d4dc658dd20f4fffafd0c1cff2b8a06d734eb547b3f41812183df6?d=identicon)[waeasyapi](/maintainers/waeasyapi)

---

Top Contributors

[![iamromec](https://avatars.githubusercontent.com/u/50284628?v=4)](https://github.com/iamromec "iamromec (29 commits)")[![waeasyapi](https://avatars.githubusercontent.com/u/107792279?v=4)](https://github.com/waeasyapi "waeasyapi (1 commits)")

### Embed Badge

![Health badge](/badges/waeasyapi-waeasyapi/health.svg)

```
[![Health](https://phpackages.com/badges/waeasyapi-waeasyapi/health.svg)](https://phpackages.com/packages/waeasyapi-waeasyapi)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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