diff --git a/README.md b/README.md new file mode 100644 index 0000000..3acd7c8 --- /dev/null +++ b/README.md @@ -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" + ] + } +} +``` diff --git a/composer.json b/composer.json index 29d3c09..ac1b7aa 100644 --- a/composer.json +++ b/composer.json @@ -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" } diff --git a/BMailApi.php b/src/BMailApi.php similarity index 100% rename from BMailApi.php rename to src/BMailApi.php diff --git a/BMailException.php b/src/BMailException.php similarity index 100% rename from BMailException.php rename to src/BMailException.php diff --git a/src/BMailServiceProvider.php b/src/BMailServiceProvider.php new file mode 100644 index 0000000..0093fdb --- /dev/null +++ b/src/BMailServiceProvider.php @@ -0,0 +1,35 @@ +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') + ]); + } +} diff --git a/BMailTemplate.php b/src/BMailTemplate.php similarity index 100% rename from BMailTemplate.php rename to src/BMailTemplate.php