PHP code example of green-api / whatsapp-api-client-php

1. Go to this page and download the library: Download green-api/whatsapp-api-client-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

green-api / whatsapp-api-client-php example snippets

bash
composer 



php -S localhost:8080


ne( "ID_INSTANCE", getenv("ID_INSTANCE" ));
define( "API_TOKEN_INSTANCE", getenv("API_TOKEN_INSTANCE") );