From f1da79c8694f6bb10bdb7b810c0c29d545391b25 Mon Sep 17 00:00:00 2001 From: Loann Meignant Date: Mon, 27 Apr 2020 17:53:30 +0200 Subject: [PATCH] Return type hints, psr, readme.md, composer.json --- README.md | 12 +++++++++--- composer.json | 6 ++++-- src/BMailApi.php | 5 ++--- src/BMailException.php | 2 -- src/BMailServiceProvider.php | 2 -- src/BMailTemplate.php | 4 +--- src/Broadcasting/BMailChannel.php | 11 ++++++++--- 7 files changed, 24 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index e78b129..45b73ae 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,17 @@ Then publish the assets from your provider : php artisan vendor:publish ``` -Finally add your API key in the .env : +Finally get your API key : ```bash -BMAIL_API_KEY=your_key -BMAIL_API_URL=the_api_url +Connect to https://bluescale.email, go to the Templates tab, click on the API button and copy your API key. +``` + +And add it in your .env, along with the API URL : + +```bash +BMAIL_API_KEY=your_api_key +BMAIL_API_URL=https://bluescale.email/api/project/template/send ``` ## Usage diff --git a/composer.json b/composer.json index 8680ee4..b1eed97 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,8 @@ } }, "require": { - "guzzlehttp/guzzle": "^6.5" - } + "guzzlehttp/guzzle": "^6.5", + "php": "^7.2" + }, + "prefer-stable": true } diff --git a/src/BMailApi.php b/src/BMailApi.php index 1a681d4..51519dd 100644 --- a/src/BMailApi.php +++ b/src/BMailApi.php @@ -1,10 +1,9 @@ $this->template, @@ -168,5 +167,4 @@ class BMailTemplate implements \JsonSerializable { return $this->toArray(); } - } diff --git a/src/Broadcasting/BMailChannel.php b/src/Broadcasting/BMailChannel.php index a2dfb09..b92ee3c 100644 --- a/src/Broadcasting/BMailChannel.php +++ b/src/Broadcasting/BMailChannel.php @@ -1,14 +1,19 @@ toTemplate($notifiable);