PHPackages                             hafael/azure-mailer-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. hafael/azure-mailer-driver

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

hafael/azure-mailer-driver
==========================

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

v8.0.0(3mo ago)15138.8k↓50.2%9MITPHPPHP &gt;=8.2CI passing

Since Jan 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/hafael/azure-mailer-driver)[ Packagist](https://packagist.org/packages/hafael/azure-mailer-driver)[ Docs](https://github.com/hafael/azure-mailer-driver)[ RSS](/packages/hafael-azure-mailer-driver/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (8)Dependencies (10)Versions (11)Used By (0)

Microsoft Azure Mailer for Laravel
==================================

[](#microsoft-azure-mailer-for-laravel)

✅ Simple implementation example of [Symfony Azure Mailer Bridge](https://github.com/symfony/azure-mailer) for Laravel Framework.

✅ Bootable scripts for Laravel

[![Latest Stable Version](https://camo.githubusercontent.com/d14c188a649b4fec6b9e7b808eefcb35c899b7393a5d20232288062e6d252477/687474703a2f2f706f7365722e707567782e6f72672f68616661656c2f617a7572652d6d61696c65722d6472697665722f76)](https://packagist.org/packages/hafael/azure-mailer-driver)[![Latest Unstable Version](https://camo.githubusercontent.com/183d4c572747de05ac33489d4289e7b20c42fbc639ca5f6bbb6e151659ba244a/687474703a2f2f706f7365722e707567782e6f72672f68616661656c2f617a7572652d6d61696c65722d6472697665722f762f756e737461626c65)](https://packagist.org/packages/hafael/azure-mailer-driver)[![Total Downloads](https://camo.githubusercontent.com/f2b3a739ece36c421badd29673a3aab35ae6196fb0fd82b3375431cd85a6c8a1/687474703a2f2f706f7365722e707567782e6f72672f68616661656c2f617a7572652d6d61696c65722d6472697665722f646f776e6c6f616473)](https://packagist.org/packages/hafael/azure-mailer-driver)[![License](https://camo.githubusercontent.com/c9bad346754a6cbef36cbc1785304638be9bbfeec89dc5cf7d8510d667a2d254/687474703a2f2f706f7365722e707567782e6f72672f68616661656c2f617a7572652d6d61696c65722d6472697665722f6c6963656e7365)](https://packagist.org/packages/hafael/azure-mailer-driver)

A use case of the [symfony/azure-mailer](https://github.com/symfony/azure-mailer) component using bootable scripts in the Laravel framework to send email messages.

💡 Requirements
--------------

[](#-requirements)

- PHP 8.2 or higher
- Laravel ([actively maintained versions](https://laravel.com/docs/releases#support-policy))

🧩 Available resources
---------------------

[](#-available-resources)

ResourceStatusPlain Text✅HTML✅Attachments✅Multiple recipients✅Auth HMAC-SHA256✅Notifications✅Mkt Campaigns✅Markdown✅📦 Installation
--------------

[](#-installation)

First time using Azure Communication Services (ACS)? Create your [Azure account](https://azure.com) if you don't have one already.

On your project directory run on the command line

```
composer require hafael/azure-mailer-driver symfony/http-client
```

🌟 Set mail config
-----------------

[](#-set-mail-config)

Add credentials to `config/services.php`:

```
'acs' => [
    'endpoint' => env('AZURE_COMMUNICATION_ENDPOINT'),
    'key'      => env('AZURE_COMMUNICATION_KEY'),
],
```

Add entry to `config/mail.php`:

```
'mailers' => [
    //...other drivers

    'acs' => [
        'transport'        => 'acs',
        // 'api_version'      => '2023-03-31', // optional
        // 'disable_tracking' => false,         // optional
    ],
]
```

Add entry to `.env`:

```
#...other entries

# Mail service entries...
MAIL_MAILER=acs

# Azure Communication Services entries
AZURE_COMMUNICATION_ENDPOINT=https://my-resource.communication.azure.com
AZURE_COMMUNICATION_KEY=Base64AzureAccessKey

```

and just send your notification mail messages!

🔄 Upgrading from previous versions
----------------------------------

[](#-upgrading-from-previous-versions)

Previous versions used `transport: azure` with different config keys. Both the old transport name and config keys are still supported for backwards compatibility.

Old keyNew keyNotes`access_key``key`renamed`resource_name``endpoint`expanded to full URL: `https://{resource_name}.communication.azure.com``disable_user_tracking``disable_tracking`renamed📚 Documentation
---------------

[](#-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/)

💡 Last change
-------------

[](#-last-change)

- Modernized to use Laravel's native transport extension hook (`Mail::extend`)
- New transport name `acs` with credentials via `config/services.php`
- Full backwards compatibility with legacy `azure` transport and old config keys

📜 License
---------

[](#-license)

MIT license. Copyright (c) 2023 - [Rafael](https://github.com/hafael)For more information, see the [LICENSE](https://github.com/hafael/azure-mailer-driver/blob/main/LICENSE) file.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance78

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~170 days

Recently: every ~243 days

Total

8

Last Release

114d ago

Major Versions

v0.3.0 → v7.2.02024-11-30

v7.2.0 → v8.0.02026-04-28

PHP version history (3 changes)v0.1.0-alphaPHP &gt;=7.3

v0.2.0PHP &gt;=8.1

v0.3.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/39ad3b7c146b7ff339338b2a19ff424f1d677a9ade97faa89f8d8eb19f1439cb?d=identicon)[hafael](/maintainers/hafael)

---

Top Contributors

[![hafael](https://avatars.githubusercontent.com/u/571130?v=4)](https://github.com/hafael "hafael (15 commits)")[![kohlerdominik](https://avatars.githubusercontent.com/u/18621527?v=4)](https://github.com/kohlerdominik "kohlerdominik (3 commits)")

---

Tags

phpapiclientsymfonylaravelsdkemailmailermicrosoftazuredriverECSswiftACSAzure communication services

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/hafael-azure-mailer-driver/health.svg)

```
[![Health](https://phpackages.com/badges/hafael-azure-mailer-driver/health.svg)](https://phpackages.com/packages/hafael-azure-mailer-driver)
```

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1223.2M11](/packages/resend-resend-laravel)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

60981.0k](/packages/railsware-mailtrap-php)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

164.6k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
