2017 © Pedro Peláez
 

package whatsapp

Service library based on chat-api

image

ongair/whatsapp

Service library based on chat-api

  • Tuesday, July 26, 2016
  • by kimenye
  • Repository
  • 1 Watchers
  • 2 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 31 Versions
  • 0 % Grown

The README.md

Usage

You need composer in order to run this., (*1)

    composer require 'ongair/whatsapp'

Running the engine

The command line args are, (*2)

  1. You need to set some environment variables
    export db=<database_url>
    export timeout=60
    export env=production
    export url=http://0.0.0.0/
  1. 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, (*3)

    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

The Versions