An open API service indexing awesome lists of open source software.

https://github.com/LibreCodeCoop/whatsapp-client

WhatsApp web php client
https://github.com/LibreCodeCoop/whatsapp-client

hacktoberfest php whatsapp whatsapp-client whatsapp-web

Last synced: about 1 year ago
JSON representation

WhatsApp web php client

Awesome Lists containing this project

README

          

[![Coverage Status](https://coveralls.io/repos/github/librecodecoop/whatsapp-client/badge.svg?branch=master)](https://coveralls.io/github/librecodecoop/whatsapp-client?branch=master)

# WhatsApp web php client

A client for WhatsApp web in PHP.

## First run

Copy the file [`.env.example`](.env.example) to `.env` and put your Telegram Bot Token and the id of chat with your bot and go up the containers:

```bash
docker-compose up -d
docker-compose exec php ./bin/build
```

## Run

```bash
docker-compose up -d
```

### Example of use

Run this command and read the content of file [example.php](example.php):
```bash
docker-compose exec php php example.php
```

* List running browsers:

http://localhost:4443/grid/console

* View the browser:

Open your VNC client and access the address localhost:port, the port is the number of port exposed in file docker-compose.yml for the choosed browser to use. Example: to see Firefox access localhost:5901, to see Chrome access localhost:5900.

Default password is: **secret**

## Suggestions of new features

* [ ] Tests. Sugestions:
* PHPUnit
* PHPStan
* Psalm
* Phan
* [x] Send qrcode to a Telegram bot
* [x] Intercept all messages and send to Telegram Bot in conversation with predefined Telegram user
* [ ] Respond message in Telegram bot and forward the response to WhatsApp contact
* [ ] Define default reply message every time when receive new message in WhatsApp
* [ ] Identify when WhatsApp is offline and notify to user in Telegram Group to open the Whatsapp Client in cellphone
* [ ] Multiple sessions