adamcmoore / laravel-newsletter-emailoctopus
EmailOctopus Driver for Spatie Laravel Newsletter
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.0|^8.1|^8.2
- goran-popovic/email-octopus-php: ^1
- spatie/laravel-newsletter: ^5.1
Requires (Dev)
- illuminate/collections: ^10
- phpunit/phpunit: ^10
- vlucas/phpdotenv: ^5.6
This package is auto-updated.
Last update: 2025-02-20 12:11:11 UTC
README
Installation
composer require adamcmoore/laravel-newsletter-emailoctopus
Usage
This package is a driver for Spatie Newsletter.
To use this driver set your config/newsletter.php
to include the below:
<?php return [ 'driver' => AcMoore\LaravelNewsletter\Drivers\EmailOctopusDriver::class, 'driver_arguments' => [ 'api_key' => env('EMAIL_OCTOPUS_API_KEY'), ], 'default_list_name' => 'default', 'lists' => [ 'default' => [ 'id' => env('EMAIL_OCTOPUS_LIST_ID'), ], ], ];
Documentation for full usage can be found on the Spatie Newsletter GitHub page.
Testing
Clone tests/.env.example
to tests/.env
and set the required config values.
For all tests to pass you should ensure your testing list has Double opt-in enabled.