Giter Site home page Giter Site logo

twiliodeved / clicktocall-laravel Goto Github PK

View Code? Open in Web Editor NEW
19.0 22.0 20.0 5.73 MB

Laravel version of click to call demo

Home Page: https://www.twilio.com/docs/tutorials/walkthrough/click-to-call/php/laravel

PHP 64.30% JavaScript 1.16% HTML 31.91% Blade 0.35% Hack 2.28%
twilio-voice

clicktocall-laravel's Introduction

Twilio

Deprecated Tutorial - Use Click to Call PHP

We have deprecated this Laravel tutorial, but please try our Click to Call PHP example

Learn more about Click to Call 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.

clicktocall-laravel's People

Contributors

dprothero avatar hortega avatar jarodreyes avatar jefflinwood avatar kathyguerron avatar kwhinnery avatar mcelicalderon avatar

Stargazers

 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

clicktocall-laravel's Issues

urlencoding phone numbers in demo

URL encoding the 'salesPhone' parameter causes an issue seen on twilio logs whereby a space inside a phone number gets encoded to a + character

Example
+44 1295 883999

Becomes
44+1295+883999

I would/have simply change(d) /app/routes.php line 21 to:

$encodedSalesPhone = urlencode(str_replace(' ','',Input::get('salesPhone')));

And this is now working fine.

Thanks

Issue building app in Heroku

There is an issue building the app in Heroku. It says...

"Your app.json's project is not a valid Heroku application. Please ensure your app is deployable to Heroku and try again."

Please help!

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.