An open API service indexing awesome lists of open source software.

https://github.com/nexmo-community/php-number-insights

Simple example of using the Nexmo Number Insights API from a PHP application
https://github.com/nexmo-community/php-number-insights

example number-insight php slim telephone vonage

Last synced: 11 months ago
JSON representation

Simple example of using the Nexmo Number Insights API from a PHP application

Awesome Lists containing this project

README

          

# Use Vonage Number Insights with PHP

This is a very simple demo app showing the [Number Insights API](https://developer.nexmo.com/number-insight/overview) in action.

## Getting Started

First: install dependencies `composer install`

Then: in your Terminal run: `ngrok http 8080`

Then: copy `config.php.sample` to `config.php`. Edit the variables to be your Vonage API key, Vonage API secret, and your Ngrok forwarding URL found in the output form the above command. Your Vonage API key and secret is available from the [dashboard](http://dashboard.nexmo.com), where you can also sign up there too if you don't have an account).

Finally: change into the `public/` directory and start the webserver with `php -S localhost:8080`