https://github.com/nexmo-community/laravel-messages
Teeny tiny demo application to show Laravel 7 with Vonage Messages API, specifically using WhatsApp.
https://github.com/nexmo-community/laravel-messages
demo-app laravel laravel7 messages php vonage whatsapp
Last synced: 9 months ago
JSON representation
Teeny tiny demo application to show Laravel 7 with Vonage Messages API, specifically using WhatsApp.
- Host: GitHub
- URL: https://github.com/nexmo-community/laravel-messages
- Owner: nexmo-community
- License: mit
- Created: 2020-08-07T15:12:34.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T18:02:45.000Z (over 3 years ago)
- Last Synced: 2024-09-27T19:40:27.836Z (almost 2 years ago)
- Topics: demo-app, laravel, laravel7, messages, php, vonage, whatsapp
- Language: PHP
- Homepage:
- Size: 82 KB
- Stars: 12
- Watchers: 13
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT
Awesome Lists containing this project
README
# Laravel Messages

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](https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=laravel-messages) 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](https://ngrok.com) to expose the port locally; copy the URL.
* On the [Dashboard](https://dashboard.nexmo.com), 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:
* Open an issue on this repository.
* Before you start contributing, check out the [Code of Conduct](CODE_OF_CONDUCT).
* Tweet at us! We're [@VonageDev on Twitter](https://twitter.com/VonageDev)
* Or [join the Nexmo Community Slack](https://developer.nexmo.com/community/slack)
## Further Reading
* Check out the Developer Documentation at