codium / laravel-sms-capture
Captures outgoing SMS notifications
Requires
- php: ^8.0
- illuminate/broadcasting: ^8.0|^9.0|^10.0|^11.0
- illuminate/notifications: ^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- laravel/framework: ^8.0|^9.0|^10.0|^11.0
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.3.5
README
Capture outgoing SMS notifications in Laravel so they can be previewed during development.
Requirements
This package has the following dependencies:
- Laravel 8+
- Pusher
This package works with the following Laravel SMS notification providers:
- Nexmo/Vonage
Installation
This package can be installed via Composer:
composer require codium/laravel-sms-capture
Once installed make sure you've setup Pusher in Laravel so captured SMS notifications can be caught and displayed.
Usage
This package exposes a single endpoint which you may access at http://localhost/__sms
. Notifications will only be caught when this page has been loaded as they are not stored on the server side.
Caught notifications will be cached in your browsers local storage and you can clear them by using the Clear Messages
button.
License
The MIT License (MIT). Please see LICENCE for more information.