Download the PHP package renatoxm/laravel-vonage-dlr-webhooks without Composer

On this page you can find all versions of the php package renatoxm/laravel-vonage-dlr-webhooks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-vonage-dlr-webhooks

LaravelVonageDlrWebhooks

Latest Version on Packagist Tests StyleCI Total Downloads

Handle Vonage DLR (delivery receipt) SMS webhooks in Laravel php framework. Take a look at contributing.md to see a to do list.

When you make a successful request to the SMS API, it returns an array of message objects, one for each message. Ideally these will have a status of 0, indicating success. But this does not mean that your message has reached your recipients. It only means that your message has been successfully queued for sending.

Vonage's adaptive routing then identifies the best carrier for your message. When the selected carrier has delivered the message, it returns a delivery receipt (DLR).

To receive DLRs in your application, you must provide a webhook for Vonage to send them to. Alternatively, you could use the Reports API to periodically download your records, including per-message delivery status.

Installation

Via Composer

Publish the config file with:

This package will log all incoming webhooks to the database by default.
Run the migrations to create a vonage_dlr_webhook_logs table in the database:

Setup DLR (delivery receipt) webhooks from Vonage

Create your account at dashboard API settings.

Under SMS settings, choose SMS API, set the webhook format to POST-JSON, and configure Delivery receipts (DLR) webhooks URL like this:

https://<you-domain.com>/api/webhooks/vonage/dlr

/api/webhooks/vonage/dlr is the package's default endpoint.

You may change the /api/webhooks/vonage/dlr endpoint to anything you like.
You can do this by changing the path key in the config/laravel-vonage-dlr-webhooks.php file.

Events

Whenever a webhook call comes in, this package will fire a LaravelVonageDlrWebhooksCalled event.
You may register an event listener in the EventServiceProvider:

Example of a listener:

Advanced configuration

You may optionally publish the config file with:

Within the configuration file you may change the table name being used or the Eloquent model being used to save log records to the database.

If you want to use your own model to save the logs to the database you should extend the Renatoxm\LaravelVonageDlrWebhooks\Model\LaravelVonageDlrWebhooksModel class.

You can also exclude one or more event types from being logged to the database.
Place the events you want to exclude under the except key:

All webhook requests will be logged in the vonage_dlr_webhook_logs table.

Change log

Please see the changelog for more information on what has changed recently.

Testing

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security issue, please email renatoxm[at]gmail[dot]com instead of using the issue tracker.

Useful Links

Acknowledgment

This package is inspired by:

forked from https://github.com/mvdnbrk/laravel-postmark-webhooks

Credits

License

MIT. Please see the license file for more information.


All versions of laravel-vonage-dlr-webhooks with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.8
illuminate/http Version ^10.0 || ^11.0
illuminate/support Version ^10.0 || ^11.0
vonage/client-core Version ^4.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package renatoxm/laravel-vonage-dlr-webhooks contains the following files

Loading the files please wait ....