Skip to content

Commit

Permalink
laravel 9 code review
Browse files Browse the repository at this point in the history
  • Loading branch information
hafael committed Aug 22, 2023
1 parent 5361737 commit 3fbd58d
Show file tree
Hide file tree
Showing 9 changed files with 801 additions and 286 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Azure Email Communication Service (ECS) for Laravel
# Microsoft Azure (ACS) Bridge

This package is an Microsoft Azure Email Communication Service (ECS) Swift Mailer Driver for Laravel.
Provides Azure Communication Service integration for Symfony Mailer.

✅ Including Laravel Service Provider boot script! (L9+)

[![Latest Stable Version](http://poser.pugx.org/hafael/azure-mailer-driver/v)](https://packagist.org/packages/hafael/azure-mailer-driver)
[![Latest Unstable Version](http://poser.pugx.org/hafael/azure-mailer-driver/v/unstable)](https://packagist.org/packages/hafael/azure-mailer-driver)
Expand All @@ -12,7 +14,8 @@ This library provides developers with a simple set of features for sending Larav

## 💡 Requirements

PHP 7.3 or higher
- PHP 8.1 or higher
- [symfony/http-client](https://github.com/symfony/http-client)


## 🧩 Available resources
Expand All @@ -35,7 +38,7 @@ First time using Azure ECS? Create your [Azure account](https://azure.com), if y
1. Download [Composer](https://getcomposer.org/doc/00-intro.md) if not already installed

2. On your project directory run on the command line
`composer require "hafael/azure-mailer-driver"`
`composer require hafael/azure-mailer-driver symfony/http-client`

3. Get your Azure CS Access Key and Service Endpoint.

Expand All @@ -56,7 +59,7 @@ Add entry to [root-of-laravel]/config/mail.php:
'transport' => 'azure',
'endpoint' => env('AZURE_MAIL_ENDPOINT', 'https://{communicatonServiceName}.communication.azure.com'),
'access_key' => env('AZURE_MAIL_KEY'),
'api_version' => env('AZURE_MAIL_API_VERSION', '2021-10-01-preview'), //optional
'api_version' => env('AZURE_MAIL_API_VERSION', '2023-03-31'), //optional
'disable_user_tracking' => env('AZURE_MAIL_DISABLE_TRACKING', false), //optional
],
]
Expand Down Expand Up @@ -87,6 +90,8 @@ and just sent your notification mail messages!

## 📚 Documentation

Build powerful, cloud-based communication and customer engagement experiences by adding voice, video, chat, sms, email, teams interoperability, call automation, and telephony to your apps.

Visit our Dev Site for further information regarding:
- Azure Communication Service Docs: [English](https://learn.microsoft.com/en-us/azure/communication-services/)

Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
{
"name": "hafael/azure-mailer-driver",
"description": "This package is an Microsoft Azure Email Communication Service (ECS) Swift Mailer Driver for Laravel.",
"description": "Provides Microsoft Azure ACS integration for Symfony Mailer. Azure Communication Services allows you to easily add real-time multimedia voice, video, and telephony-over-IP communications features to your applications. The Communication Services Email client libraries also allow you to add chat and EMAIL functionality to your communications solutions.",
"homepage": "https://github.com/hafael/azure-mailer-driver",
"type": "library",
"license": "MIT",
"minimum-stability": "dev",
"keywords": ["azure", "php", "api", "client", "sdk", "ecs", "azure communication service", "microsoft", "email", "driver", "swift", "mailer", "laravel", "symfony"],
"require": {
"php" : ">=7.3",
"guzzlehttp/guzzle": ">=6.0"
"php": ">=8.1",
"symfony/mailer": "^5.4.21|^6.2.7"
},
"require-dev": {
"phpunit/phpunit": "5.5.*"
"phpunit/phpunit": "^8.0",
"symfony/http-client": "^5.4|^6.0"
},
"authors": [
{
"name": "Rafael Villa Verde",
"email": "villa655321verde@gmail.com"
}
],
"conflict": {
"symfony/mime": "<6.2"
},
"autoload": {
"psr-4": {
"Hafael\\Azure\\SwiftMailer\\": ["src", "test"]
"Hafael\\Azure\\Transport\\": ["src", "test"]
}
},
"scripts": {
Expand All @@ -29,7 +34,7 @@
"extra": {
"laravel": {
"providers": [
"Hafael\\Azure\\SwiftMailer\\AzureMailerServiceProvider"
"Hafael\\Azure\\Transport\\AzureMailerServiceProvider"
]
}
}
Expand Down

0 comments on commit 3fbd58d

Please sign in to comment.