ongair / whatsapp
Service library based on chat-api
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Type:package
Requires
- analog/analog: 1.0.7
- aws/aws-sdk-php: ^3.18
- maxbanton/cwh: ^0.1.0
- monolog/monolog: ^1.20
- php-activerecord/php-activerecord: ^1.1
- rmccue/requests: >=1.0
- rollbar/rollbar: ~0.11.0
- slim/slim: 2.3.*
- vlucas/phpdotenv: ~1.1
- whatsapp/chat-api: v3.2.0.1
This package is not auto-updated.
Last update: 2025-03-01 22:04:35 UTC
README
You need composer in order to run this.
composer require 'ongair/whatsapp'
Running the engine
The command line args are
- You need to set some environment variables
export db=<database_url>
export timeout=60
export env=production
export url=http://0.0.0.0/
- The account which we want to run
export ACCOUNT=254733171036
php vendor/ongair/whatsapp/ongair.php
Running Containers
If running via a container you need to setup the same variables then run the image
docker run -e db=$db -e url=$url -e aws_key_id=$aws_key_id -e aws_secret_access_key=$aws_secret_access_key -e slack_token=$slack_token -e account=<account> -t ongair/ongair:whatsphp