codium/laravel-sms-capture

Captures outgoing SMS notifications

v1.0.0 2021-03-23 21:45 UTC

This package is auto-updated.

Last update: 2021-09-23 22:58:25 UTC


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.