Giter Club home page Giter Club logo

laravel-messages's Introduction

Laravel Messages

Nexmo is now known as Vonage

Laravel Messages is a very simple demo app to show a Messages API integration with Laravel 7. It receives and responds to WhatsApp messages, sends Messages to a whitelisted number, and logs the incoming status events.

Welcome to Vonage

If you're new to Vonage, you can sign up for an account and get some free credit to get you started.

Set Up the Project

We've tried to keep things short and sweet!

  • Clone this repo and run composer install (requires PHP 7.3+).
  • Copy .env.example to .env, add your credentials to the NEXMO_* fields at the bottom.
  • Run your application with php artisan serve.
  • If you're working locally, run ngrok to expose the port locally; copy the URL.
  • On the Dashboard, go to the Messages API Sandbox, and whitelist your phone for WhatsApp.
  • On the same page, configure the webhook URLs for incoming messages and status events:
    • incoming messages should be [url you copied earlier]/webhooks/inbound
    • status webhooks should go to [url you copied earlier]/webhooks/status

You're all set!

Run the Project

Visit [url of project]/messages and enter the number of the whitelisted phone (in E163 format, e.g. 447770007777. You should get a WhatsApp message.

Getting Help

We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:

Further Reading

laravel-messages's People

Contributors

lornajane avatar imanishbarnwal avatar

Watchers

James Cloos avatar  avatar

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.