Download the PHP package raphaelvserafim/client-php-api-wa-me without Composer

On this page you can find all versions of the php package raphaelvserafim/client-php-api-wa-me. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package client-php-api-wa-me

WhatsApp API - PHP Client

PHP client library for api-wa.me - Unofficial WhatsApp API integration.

Send and receive messages, manage contacts, groups, communities, newsletters, labels, business catalog and more.

Requirements

Installation

Quick Start

WhatsApp remains available as a backward-compatible alias of Wame (new WhatsApp([...]) behaves identically). Prefer Wame in new code.

Multichannel (provider)

The API can send/receive through whatsapp, instagram or messenger. Set a client-wide default with the provider option, or override per send:

Provider injection applies to sendText, sendAudio, sendImage, sendVideo, sendDocument, sendButtonAction/sendButtonReply and sendTemplate. When no provider is set, the field is omitted and the API assumes whatsapp.

Architecture

The client is organized into domain-specific modules accessible via the main Wame class:

Property Class Description
$wa->instance Instance Connection, settings, profile, proxy, mobile registration
$wa->message Message Send/reply all message types
$wa->chat Chat Chat management, messages history, privacy
$wa->contact Contact Contacts CRUD, block/unblock
$wa->group Group Groups CRUD, members, roles, invites
$wa->community Community Communities CRUD, settings, invites
$wa->label Label Labels CRUD, assign to chats
$wa->newsletter Newsletter Newsletters CRUD, follow, messages
$wa->business Business Product catalog management
$wa->status Status Status/Stories (text, image, video, audio)
$wa->call Call Make, accept, reject, end calls
$wa->webhook Webhook Parse incoming webhook payloads

Instance

Messages

Text

Media

Base64 Media

Location

Contact

Link Preview

Reaction

Presence

Buttons

List

Poll

Survey

Event

Pix Payment (Brazil)

Pin / Unpin

Call Link

Product & Group Invite

Get Message Details & Download Media

Reply to Messages

All reply methods require the original message ID as the first parameter:

Chat

Contacts

Groups

Communities

Labels

Newsletter

Business Catalog

Status / Stories

Calls

Webhook

Enable the Meta envelope format on your instance by setting 'webhookFormat' => 'meta' in updateWebhook(...) (see Instance). The API then delivers webhooks in the Meta / "wame" envelope format (multichannel: whatsapp / instagram / messenger). Use parseMeta() to turn a request body into a list of normalized events:

Each message event carries its own payload, e.g. a text event has $e['text']['body'], an image event has $e['image'] (id, url, mimeType, ...).

Example: Auto-reply bot

Legacy parser

Media webhook properties

Button / List webhook properties

Contact webhook properties

Backward Compatibility

All methods from the previous version still work but are marked as @deprecated. They delegate to the new module methods internally:

Support

License

MIT


All versions of client-php-api-wa-me with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package raphaelvserafim/client-php-api-wa-me contains the following files

Loading the files please wait ...