mblsolutions / paypoint-sendgrid-notification
PayPoint Sendgrid Notification package
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.1|8.2|8.3|8.4
- ext-json: *
- guzzlehttp/guzzle: *
- illuminate/contracts: ^10.0|^11.0|^12.0
- illuminate/database: ^10.0|^11.0|^12.0
- illuminate/events: ^10.0|^11.0|^12.0
- illuminate/mail: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
- lerouse/laravel-repository: ^2.6
- symfony/http-client: ^6.0|^7.0
- symfony/sendgrid-mailer: ^6.0|^7.0
Requires (Dev)
- mockery/mockery: ^1.6
- orchestra/testbench: ^8.0||^9.0||^10.0||^11.0
- phpunit/phpunit: ^10.0||^11.0||^12.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-08-28 09:42:36 UTC
README
PayPoint sendgrid notification package
Installation
The recommended method to install LaravelRepository is with composer
php composer require mblsolutions/paypoint-sendgrid-notification
Laravel without auto-discovery
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
\MBLSolutions\SendgridNotification\SendgridNotificationServiceProvider::class,
Package configuration
Copy the package configuration to your local config directory.
php artisan vendor:publish --tag=sendgrid-notification-config
Database Driver
If you would like to use the Database driver to store your notification logs, you will first need to create and run the database driver migration.
php artisan paypoint-sendgrid-notification:database:table
This will create a new migration in database/migrations
, after creating this migration run the database migrations to
create the new table.
php artisan migrate
Usage
The configuration and setup can be adjusted in the notification config file located in config/notification.php
. We
recommend reading through the config file before enabling notification to ensure you have the optimum setup.
Enable Notification Service
In environment setting, you need to change MAIL_MAILER from smtp to sendgrid to enable the service. The credentials is neede to add in your .env file.
MAIL_MAILER=sendgrid SENDGRID_DSN=sendgrid+api://[SECRET_KEY]@default
In mail setting, you need to add sendgrid in mailer.
'mailers' => [ //... other mailer 'sendgrid' => [ 'transport' => 'sendgrid', 'dsn' => env('SENDGRID_DSN'), ],
License
Notification is free software distributed under the terms of the MIT license.