This is a very simple Slim PHP application to showcase using the Nexmo Messages API to send messages to customers of an imaginary Cupcake Bakery business. If the message isn't delivered, the Nexmo Dispatch API can be used to fall back to an alternative messaging channel.
- You will need a Nexmo account and the Nexmo CLI tool tool installed.
- Clone this repository
- Run
composer install
to get the dependencies - Copy
config.php.sample
toconfig.php
and add the settings there as required - the comments direct you to creating the JWT you will need for access - Run
php -S localhost:8080
in thepublic/
directory
The sample project should now be available at http://localhost:8080.