Download the PHP package adrii/whatsapp-api without Composer
On this page you can find all versions of the php package adrii/whatsapp-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adrii/whatsapp-api
More information about adrii/whatsapp-api
Files in adrii/whatsapp-api
Package whatsapp-api
Short Description WhatsApp-Api is a lightweight library to easily interact with cloud APIs of the WhatsApp Business Platform.
License MIT
Informations about the package whatsapp-api
Whatsapp-Api
WhatsApp-Api is a lightweight library to easily interact with cloud APIs of the WhatsApp Business Platform.
INDEX |
---|
Installation |
Configutation |
Webhook |
Messages |
License |
Installation
Use Composer to install the library.
Composer
Configutation
Webhook
To be alerted when you receive a message or when the status of a message changes, you need to set up a webhook connection point for your app.
This method handles the entire connection request on its own. The access_token is used to validate the connection.
Messages
Status | Type |
---|---|
✅ | Text |
✅ | Template |
✅ | Location |
✅ | Contact |
✅ | Media |
✅ | Interactive |
Text
Send basic text (emojis allowed).
Template
Send message templates defined in the Meta manager.
Send message templates defined in the Meta manager with parameters
Location
Sends a location, through a longitude, latitude and an address.
Contact
Send a contact message
The name is the only required parameter, the other data are optional.
You can concatenate as many contacts as you want
Media
Send a media, as a link or id
Describes the specified image or video media with caption.
Describes the filename for the specific document.
Interactive
Send an interactive message with reply buttons
Send an interactive message with list of buttons
Data examples for each message
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.