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
- Host: GitHub
- URL: https://github.com/LibreCodeCoop/whatsapp-client
- Owner: LibreCodeCoop
- License: agpl-3.0
- Created: 2020-07-16T04:01:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-08T23:59:17.000Z (about 1 year ago)
- Last Synced: 2025-03-05T19:23:40.721Z (about 1 year ago)
- Topics: hacktoberfest, php, whatsapp, whatsapp-client, whatsapp-web
- Language: PHP
- Homepage:
- Size: 397 KB
- Stars: 43
- Watchers: 7
- Forks: 12
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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