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.
Download raphaelvserafim/client-php-api-wa-me
More information about raphaelvserafim/client-php-api-wa-me
Files in raphaelvserafim/client-php-api-wa-me
Package client-php-api-wa-me
Short Description PHP client for api-wa.me - WhatsApp API
License MIT
Homepage https://github.com/raphaelvserafim/client-php-api-wa-me
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
- PHP >= 8.1
- ext-curl
Installation
Quick Start
Wame(new WhatsApp([...])behaves identically). PreferWamein 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
- Email: [email protected]
- Website: https://api-wa.me
- Sign up: https://api-wa.me/sign-up
License
MIT
All versions of client-php-api-wa-me with dependencies
ext-curl Version *