Skip to content

TwilioDevEd/ivr-phone-tree-laravel

Repository files navigation

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

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

Read the full tutorial here!

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 the following 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

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.