This project validates a Verification Event callback received from the Sinch platform when using the Sinch Verification product with callbacks enabled.
- install the project's dependencies using
composer install
- replace the required values in the
/routes/api.php
file - run the server using
php artisan serve
- start ngrok
ngrok http 8000
(port 8000 is used by default by Laravel)- copy the ngrok url to the Verification App that you will receive Verification Events from to your Sinch Dashboard
- make sure to append the following URI at the end of the URL,
/api/verification/events
- example
https://df6a-143-177-206-33.ngrok.io/api/verification/events
- test using the SMS PIN Verification script found in the project
- replace the required values in the
test-sms-verification-basic-auth.php
file or in thetest-sms-verification-signed-request.php
file - use either of the 2 scripts to start an SMS verification event, e.g. run the command
php -f test-sms-verification-basic-auth.php
- replace the required values in the
- Make sure the
php.ini
file includesextension=php_fileinfo.dll
, not having the extension will blockcomposer
to get all the required dependencies