Code Monkey home page Code Monkey logo

ivr-phone-tree-laravel's Introduction

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.

ivr-phone-tree-laravel's People

Contributors

acamino avatar ahigueratw avatar albertmukarsel avatar bld010 avatar dependabot-preview[bot] avatar ericvanjohnson avatar jefflinwood avatar johncongdon avatar kathyguerron avatar kwhinnery avatar mcelicalderon avatar tomwanzek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ivr-phone-tree-laravel's Issues

Add step to README about copying .env.example to .env

I'm not very experienced with PHP, but I had some trouble setting up this project because the README didn't mention copying the .env.example file to .env.

Can you add a note about that?

I also had to run php artisan key:generate before the app would work, so maybe we need to add that to the README instructions also.

Calls disconnect immediately

I was noticing that Twilio connects to the app fine, but often calls immediately disconnect. I dug into the logs at Twilio and saw that it was being caused by a 403 error at amazonaws: "All access to this object has been disabled" (et-phone.mp3). I guess they rate limit the access to that file.

Change "composer update" to "composer install" in the README

I ran into errors following the README because it told me to run composer update instead of composer install. composer update kept erroring out for me.

I double-checked this with some other PHP experts at Twilio, and when a developer is cloning a repo for the first time, we should ask them to run composer install instead.

Option #3 on in the showPlanetConnection errors for me

Everything else in the IVR worked for me except this selection:

https://github.com/TwilioDevEd/ivr-phone-tree-laravel/blob/master/app/Http/Controllers/IvrController.php#L105

When I call +12013409912 I get the standard Twilio error message.

You can either fix the number you created for this tutorial, or use the ones from the Rails port:

https://github.com/TwilioDevEd/ivr-phone-tree-rails/blob/master/app/controllers/twilio_controller.rb#L47-L52

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.