Download the PHP package netflie/whatsapp-cloud-api without Composer

On this page you can find all versions of the php package netflie/whatsapp-cloud-api. 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 whatsapp-cloud-api

What It Does

This package makes it easy for developers to access WhatsApp Cloud API service in their PHP code.

The first 1,000 conversations each month are free from WhatsApp Cloud API. A conversation.

Getting Started

Please create and configure your Facebook WhatsApp application following the "Get Stared" section of the official guide.

Minimum requirements – To run the SDK, your system will require PHP >= 7.4 with a recent version of CURL >=7.19.4 compiled with OpenSSL and zlib.

Installation

Quick Examples

Send a text message

Send a document

You can send documents in two ways: by uploading a file to the WhatsApp Cloud servers (where you will receive an identifier) or from a link to a document published on internet.

Send a template message

You also can build templates with parameters:

Send an audio message

Send an image message

Send a video message

Send a sticker message

Stickers sample: https://github.com/WhatsApp/stickers

Send a location message

Send a contact message

Send a list message

Send a button reply message

Replying messages

You can reply a previous sent message:

Media messages

Upload media resources

Media messages accept as identifiers an Internet URL pointing to a public resource (image, video, audio, etc.). When you try to send a media message from a URL you must instantiate the LinkID object.

You can also upload your media resources to WhatsApp servers and you will receive a resource identifier:

Download media resources

To download a media resource:

Message Response

WhatsAppCloudApi instance returns a Response class or a ResponseException if WhatsApp servers return an error.

Webhooks

Webhook verification

Add your webhook in your Meta App dashboard. You need to verify your webhook:

Webhook notifications

Webhook is now verified, you will start receiving notifications every time your customers send messages.

The Webhook::read function will return a Notification instance. Please, explore the different notifications availables.

Mark a message as read

When you receive an incoming message from Webhooks, you can mark the message as read by changing its status to read. Messages marked as read display two blue check marks alongside their timestamp.

Marking a message as read will also mark earlier messages in the conversation as read.

Get Business Profile

Update Business Profile

Fields list: https://developers.facebook.com/docs/whatsapp/cloud-api/reference/business-profiles

Features

Getting Help

Migration to v2

Please see UPGRADE for more information on how to upgrade to v2.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

You also can run tests making real calls to the WhastApp Clou API. Please put your testing credentials on WhatsAppCloudApiTestConfiguration file.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information. Please see License file for more information.

Disclaimer

This package is not officially maintained by Facebook. WhatsApp and Facebook trademarks and logos are the property of Meta Platforms, Inc.


All versions of whatsapp-cloud-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0 || ^8.1
guzzlehttp/guzzle Version ^7.0
vlucas/phpdotenv Version ^5.4
myclabs/php-enum Version ^1.8
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 netflie/whatsapp-cloud-api contains the following files

Loading the files please wait ....