/big-wood-line

A phone tree app

Primary LanguagePHP

IVR Phone Tree: IVR for beginners. powered by Twilio - Laravel

An example application implementing an automated phone line using Twilio and Laravel.

Build Status

Run the application

  1. Clone the repository and cd into it.

  2. Install the application's dependencies with Composer

    $ composer install
  3. Copy .env.example to .env and generate a new app key:

    $ cp .env.example .env
    $ php artisan key:generate
  4. Run the application using Artisan.

    $ php artisan serve
  5. Expose the application to the wider Internet using ngrok

    $ ngrok 8000 http
  6. Provision a number under the Manage Numbers page on your account. Set the voice URL for the number to http://<your-ngrok-subdomain>.ngrok.io/ivr/welcome.

  7. Grab your phone and call your newly-provisioned number!

Dependencies

This application uses this Twilio helper library:

Run the tests

Run at the top-level directory:

$ phpunit --coverage-text

If your PHP installation doesn't have xdebug support then simply run the tests without coverage reporting

$ phpunit

BigWoodLine