Laravel version of click to call demo
PHP HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
public
.env.php
.gitignore
CONTRIBUTING.md
Procfile
app.json
artisan
composer.json
composer.lock Upgrade Twilio library to RC19 Aug 9, 2016
phpunit.xml
readme.md
server.php

readme.md

Twilio

Click to Call Laravel

An application example implementing Click to Call using Twilio.

Read the full tutorial here!

Local Development

  1. Grab latest source

     $ git clone git://github.com/TwilioDevEd/clicktocall-laravel.git
  2. Setup your environment variables

    Are you using a bash shell? Use echo $SHELL to find out. For a bash shell, edit the ~/.bashrc or ~/.bashprofile file and add:

     export TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxx
     export TWILIO_AUTH_TOKEN=yyyyyyyyyyyyyyyyy
     export TWILIO_NUMBER=+15556667777

    Or just export the same variables for this session.

  3. Install the dependencies with Composer.

    $ composer install
  4. Generate an APP_KEY.

    $ php artisan key:generate
  5. Start the server.

    $ php artisan serve
  6. Expose the application to the wider internet

  7. Check out the app at http://<sub-domain>.ngrok.io.

Expose the Application to the Wider Internet

  1. Expose your application to the wider internet using ngrok. You can clickhere for more details. This step is important because the application won't work as expected if you run it through localhost.
 $ ngrok http 8000

Once ngrok is running, open up your browser and go to your ngrok URL. It will look something like this: http://<sub-domain>.ngrok.io

Meta

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