markix / markix-laravel
Markix for Laravel
Requires
- php: ^8.1
- illuminate/support: ^9.21|^10.0
- markix/markix-php: ^0.1.0
- symfony/mailer: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
- mockery/mockery: ^1.5
- orchestra/testbench: ^7.22|^8.0
- pestphp/pest: ^1.22
README
Introduction
Markix for Laravel is our first-party Laravel integration. It's the fastest way to start sending emails with Markix in your Laravel application.
Installation
To use the Markix driver, install the mailer transport via Composer:
composer require markix/markix-laravel
Then, add the following option to your config/mail.php
configuration file:
'markix' => [ 'transport' => 'markix', ],
Next, either set the default
option in your application's config/mail.php
configuration file to markix
, or update the MAIL_MAILER
environment variable in your application's .env
file:
MAIL_MAILER=markix
After configuring your application's default mailer, verify that your config/services.php
configuration file contains the following options:
'markix' => [ 'token' => env('MARKIX_TOKEN'), ],
Finally, add your Markix API test token to your local .env
file. If you're deploying to production you should use your live API token instead:
MARKIX_TOKEN=test_....
License
Markix for Laravel is open-sourced software licensed under the MIT license.