diff --git a/README.md b/README.md index 65ca655..9e798f6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,18 @@ -# Laravel Mandrill Driver +
-[![PHPUnit](https://github.com/intonate/laravel-mandrill-driver/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/intonate/laravel-mandrill-driver/actions/workflows/phpunit.yml) -[![StyleCI](https://github.styleci.io/repos/209204562/shield?branch=master)](https://github.styleci.io/repos/209204562) -[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/intonate/laravel-mandrill-driver/blob/master/LICENSE) + The missing Mandrill API based mail driver for Laravel +> [!NOTE] +> This is a *community project* and **not** an official Laravel package + ## Versions Laravel | Install @@ -17,42 +24,60 @@ Laravel | Install 7.x | `^1.2` 6.x | `^1.0` -## Laravel 8, 9, 10 & 11 Installation +## Installation Guide for Laravel 8, 9, 10 & 11 -* First, require the package using composer: +1. Install the Package via Composer +Run the following command in your terminal to install the package using Composer: ```sh composer require intonate/laravel-mandrill-driver ``` -* Add the `MAIL_MAILER` and `MANDRILL_SECRET` environment variables: +2. Configure Environment Variables +Update your `.env` file with the following environment variables: ```dotenv MAIL_MAILER=mandrill MANDRILL_SECRET=YourMandrillAPIKey ``` -* Add mandrill config to the `config/services.php` file: +3. Update Service Configuration +Open your `config/services.php` file and add the Mandrill configuration to it: ```php 'mandrill' => [ 'secret' => env('MANDRILL_SECRET'), ], ``` -* Add mandrill option to the `config/mail.php` "mailers" array: +4. Configure Mail Driver +In your `config/mail.php` file, add the Mandrill mailer configuration to the "mailers" array: ```php -'mandrill' => [ - 'transport' => 'mandrill', +'mailers' => [ + //... + + 'mandrill' => [ + 'transport' => 'mandrill', + ], ], ``` -## Laravel 6 & 7 Installation +## Installation Guide for Laravel 6 & 7 + +Follow these steps to configure the Mandrill mail driver for Laravel 6 and 7: + +1. Configure Environment Variables + +Update your `.env` file with the following environment variables: +```dotenv +MAIL_DRIVER=mandrill +MANDRILL_SECRET=YourMandrillAPIKey +``` -* Set the `MAIL_DRIVER=mandrill` and `MANDRILL_SECRET` environment variables. -* Add mandrill config to the `config/services.php` file: +2. Update Service Configuration +Open the `config/services.php` file and insert the Mandrill configuration: ```php 'mandrill' => [ 'secret' => env('MANDRILL_SECRET'), diff --git a/composer.json b/composer.json index eb3ba44..d939833 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,18 @@ { "name": "intonate/laravel-mandrill-driver", - "description": "Mandrill mail driver for Laravel", + "description": "Laravel Mandrill API based mail driver.", "keywords": [ + "driver", "laravel", + "laravel-package", + "mail", + "mailchimp", + "mailer", + "mailing", "mandrill", - "driver" + "mandrill-api", + "mandrill-driver", + "mandrill-email" ], "type": "library", "homepage": "https://github.com/intonate/laravel-mandrill-driver", diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..e94a690 --- /dev/null +++ b/logo.svg @@ -0,0 +1,28 @@ +