Skip to content

Commit

Permalink
Merge pull request #11 from intonate/feature/readme-logo
Browse files Browse the repository at this point in the history
Add logo, badges and update copy in README.md
  • Loading branch information
scrubmx committed Apr 25, 2024
2 parents f6c5006 + 2d050d7 commit 0164f54
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 16 deletions.
53 changes: 39 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Laravel Mandrill Driver
<p align="center"><img src="/logo.svg" title="Laravel Mandrill Driver" alt="Logo Laravel Mandrill Driver"></p>

[![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)
<p align="center">
<a href="https://github.com/intonate/laravel-mandrill-driver/actions/workflows/phpunit.yml?query=workflow:PHPUnit"><img src="https://github.com/intonate/laravel-mandrill-driver/workflows/PHPUnit/badge.svg" alt="PHPUnit" /></a>
<a href="https://styleci.io/repos/209204562"><img src="https://github.styleci.io/repos/209204562/shield?style=flat" alt="StyleCI" /></a>
<a href="https://packagist.org/packages/intonate/laravel-mandrill-driver"><img src="https://img.shields.io/packagist/dt/intonate/laravel-mandrill-driver.svg" alt="Total Downloads" /></a>
<a href="https://packagist.org/packages/intonate/laravel-mandrill-driver"><img src="https://img.shields.io/packagist/v/intonate/laravel-mandrill-driver.svg?label=stable" alt="Latest Stable Version" /></a>
<a href="https://packagist.org/packages/intonate/laravel-mandrill-driver"><img src="https://img.shields.io/packagist/l/intonate/laravel-mandrill-driver.svg" alt="License" /></a>
</p>

The missing Mandrill API based mail driver for Laravel

> [!NOTE]
> This is a *community project* and **not** an official Laravel package
## Versions

Laravel | Install
Expand All @@ -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'),
Expand Down
12 changes: 10 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading

0 comments on commit 0164f54

Please sign in to comment.