https://github.com/lornajane/incoming-sms-laravel-beanstalkd
Code samples for receiving Nexmo SMS with Laravel, and processing the messages from a queue
https://github.com/lornajane/incoming-sms-laravel-beanstalkd
beanstalkd example-code laravel nexmo php queue sms vonage
Last synced: 4 months ago
JSON representation
Code samples for receiving Nexmo SMS with Laravel, and processing the messages from a queue
- Host: GitHub
- URL: https://github.com/lornajane/incoming-sms-laravel-beanstalkd
- Owner: lornajane
- License: mit
- Created: 2019-06-03T10:48:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:52:41.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T23:18:30.383Z (12 months ago)
- Topics: beanstalkd, example-code, laravel, nexmo, php, queue, sms, vonage
- Language: PHP
- Size: 2.53 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nexmo SMS with Laravel
This repository holds an example of a Laravel application that receives incoming SMS messages from [Nexmo](https://nexmo.com). It's used in @lornajane's talks.
## Install the application and Dependencies
* Clone this repository, then run `composer install`.
* This application expects to use a queue, configure your Beanstalkd, Redis or Laravel Horizon setup accordingly, or use the `sync` queue type.
## Configure the application
* Run `php artisan vendor:publish` to get the `config/nexmo.php` configuration file.
* Add your API key, secret and signature secret to the config (if you don't already have a Nexmo account, sign up [here](https://dashboard.nexmo.com)).
* Buy a Nexmo number, and link it to the URL of your application - with `/webhooks/inbound-sms` on the end of the URL (this is the route the application expects).
**Pro-tip:** If you're running locally, use [ngrok](https://ngrok.com) to expose your application to the outside world.
## Usage
* Run `php artisan serve` to start the application.
* Send an SMS to your Nexmo number!