Download the PHP package antiques/laravel-sendgrid-events without Composer

On this page you can find all versions of the php package antiques/laravel-sendgrid-events. 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-sendgrid-events

Laravel Sendgrid Events

This package enables your Laravel application to receive event webhooks from Sendgrid, and optionaly will store those events in your database. The package also fires Laravel events so you can hook in to the webhooks and take your own actions.

Installation

Getting the package

Copy the config file (optional)

This library works without any local configuration, however you may want to use the config file in order to tweak the logs you receive. (eg. to receive logs when you receive duplicate events or to enable event storing in the database).

Call the command below to copy the package config files:

Run the migrations (optional)

Into config file sendgridevents.php, the option that handle storing events store_events_into_database is disabled by default and migrations will not run automatically. If store_events_into_database is enabled, migrations will be registered and you should run:

After that, all events sent by Sendgrid will be automatically stored in the database.

Copy the migrations files (optional)

You are able to configure migrations on your way by running:

Tell Sendgrid to use your new event webhook URL

Head over to https://app.sendgrid.com/settings/mail_settings and click on the 'Event Notification' section.

Your HTTP Post URL is: https://yourwebsite.com/sendgrid/webhook

Using the library

Listen to events

Each time new event is registered the package will trigger \Antiques\LaravelSendgridEvents\Events\SendgridEventCreated. Based on that, you could define listeners in your EventServiceProvider and handle further logic.

Querying records

This library uses a standard Laravel Eloquent model, so you can therefore query it as you would any other model.

Interacting with a record

Accessing data included with all event types:

Some data is only included with specific events. You can find out what these attributes are here: https://sendgrid.com/docs/API_Reference/Event_Webhook/event.html#-Event-objects

We include this data under the payload array within a record. For example:


All versions of laravel-sendgrid-events with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-json Version *
sendgrid/sendgrid Version ~7
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 antiques/laravel-sendgrid-events contains the following files

Loading the files please wait ....