settermjd / laminas-sendgrid-integration
A small package to simplify integrating SendGrid into a Laminas or Mezzio project
Fund package maintenance!
Community Bridge
Requires
- php: ^8.2.0
- composer/composer: ^2.5
- psr/container: ^1.0.0 || ^2.0.0
- sendgrid/sendgrid: 8.0.1
- symfony/filesystem: ^6.2
Requires (Dev)
- fakerphp/faker: ^1.21
- laminas/laminas-coding-standard: ^2.5
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^10.1
- psalm/plugin-phpunit: ^0.18.4
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.9
README
This is a small package that simplifies integrating SendGrid into Laminas and Mezzio projects.
Installation
Install this package using Composer:
composer require settermjd/laminas-sendgrid-integration
Configuration
If you're using the package with Mezzio, copy the default configuration file, config/autoload/sendgrid.global.php, to config/autoload in your project.
Then, either ensure that the SENDGRID_API_KEY
environment variable is set, or change the value of api_key
in config/autoload/sendgrid.global.php as appropriate.
I recommend using PHP Dotenv to set environment variables during development and your deployment tool otherwise.