- composer install -vvv && php artisan key:generate
- Go to config/twilio.php, complete all credentials.
TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN"= TWILIO_VERIFY_SID=
php artisan migrate
php artisan passport:install
- Simple laravel built-in server
php artisan serve
- POST
/api/register
- register an account and copy token or POST/api/login
login - POST
api/v1/verification
- use Bearer Token and send SMS code - POST
/api/v1/verification-code
- verify code
Located at Http/Controllers/Api/PhoneVerificationApiController
Located at Services/Twilio
Located at tests/Feature/VerificationTest
- Official Twilio Laravel demo project: https://github.com/TwilioDevEd/verify-v2-quickstart-php
- Extended laravel notification channel for Twilio: https://github.com/laravel-notification-channels/twilio
- Laravel Phone number validation: https://github.com/Propaganistas/Laravel-Phone