Creating README.md and updating composer.json

This commit is contained in:
Loann 2020-04-09 12:55:07 +02:00
parent d46e750911
commit 571a9784e9
6 changed files with 77 additions and 0 deletions

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# BMail
The BMail package allows you to send email templates on Laravel to the Bluescale API.
## Usage
In your composer.json, add :
```bash
"extra": {
"laravel": {
"providers": [
"BMail\\BMailServiceProvider"
]
}
}
```

View File

@ -1,4 +1,29 @@
{
"name": "bluescale/laravel-bmail",
"description": "Send email templates on Laravel to the Bluescale API.",
"keywords": [
"package",
"bluescale",
"api",
"template",
"email"
],
"homepage": "https://git.bluesquare.io/bluescale/laravel-bmail",
"license": "proprietary",
"authors": [
{
"name": "Bluesquare",
"email": "contact@bluesquare.io",
"homepage": "https://bluesquare.io/",
"role": "Developers"
}
],
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"BMail\\": "BMail/src/"
}
},
"require": {
"guzzlehttp/guzzle": "^6.5"
}

View File

@ -0,0 +1,35 @@
<?php
namespace BMail;
use Illuminate\Support\ServiceProvider;
class BMailServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(
__DIR__.'/../config/services.php',
'bmail'
);
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__.'/../config/services.php' => config_path('services.php')
]);
}
}