Skip to content

Commit

Permalink
Merge pull request #49 from Pavlico/readme-update
Browse files Browse the repository at this point in the history
Readme consistency update
  • Loading branch information
zeefarmer authored Feb 23, 2022
2 parents 06cb7d2 + 11fbe51 commit 1878b0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 40 deletions.
39 changes: 1 addition & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,44 +60,7 @@ MAIL_FROM_NAME=YOU_FROM_NAME

## Full configuration

```php
'mailjet' => [
'key' => env('MAILJET_APIKEY'),
'secret' => env('MAILJET_APISECRET'),
'transactional' => [
'call' => true,
'options' => [
'url' => 'api.mailjet.com',
'version' => 'v3.1',
'call' => true,
'secured' => true
]
],
'common' => [
'call' => true,
'options' => [
'url' => 'api.mailjet.com',
'version' => 'v3',
'call' => true,
'secured' => true
]
],
'v4' => [
'call' => true,
'options' => [
'url' => 'api.mailjet.com',
'version' => 'v4',
'call' => true,
'secured' => true
]
],
]
```
You can pass settings to [MailjetClient](https://github.com/mailjet/mailjet-apiv3-php#new--version-120-of-the-php-wrapper-).

* `transactional`: settings to sendAPI client
* `common`: setting to MailjetClient accessible throught the Facade Mailjet
* `v4`: setting used for some DataProvider`s
For details head to [configuration doc](docs/configuration.md).

## Mail driver configuration

Expand Down
13 changes: 11 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@
'call' => true,
'secured' => true
]
]
],
'v4' => [
'call' => true,
'options' => [
'url' => 'api.mailjet.com',
'version' => 'v4',
'call' => true,
'secured' => true
]
],
]
```
You can pass settings to [MailjetClient](https://github.com/mailjet/mailjet-apiv3-php).
Expand All @@ -32,7 +41,7 @@ You can pass settings to [MailjetClient](https://github.com/mailjet/mailjet-apiv
* `version` (Default: `v3`): Mailjet API version (only working for Mailjet API v3)
* `call` (Default: `true`): Toggle if the API call is actually performed or mocked
* `secured` (Default: `true`): Toggle the usage of 'https'

* `v4`: setting used for some DataProvider`s

## Mail driver configuration

Expand Down

0 comments on commit 1878b0f

Please sign in to comment.