kuantiko/ci4-msgraph-mailer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kuantiko/ci4-msgraph-mailer

最新稳定版本:v1.1.2

Composer 安装命令:

composer require kuantiko/ci4-msgraph-mailer

包简介

Provides a new protocol (msgraph) to the Email library enabling sending emails via Microsoft Graph API with OAuth2

README 文档

README

Installation

To install this package, use Composer. Run the following command in your terminal:

composer require kuantiko/ci4-msgraph-mailer

Manual Installation

If you prefer to install the package manually, follow these steps:

  1. Clone the repository into your project:

    git clone https://bitbucket.org/kuantiko/ci4-msgraph-mailer.git
    
  2. Add the package to your project's autoloader. Update the autoload section in your composer.json file:

    "autoload": {
        "psr-4": {
            "Kuantiko\\Ci4MsgraphMailer\\": "path/to/ci4-msgraph-mailer/src/"
        }
    }
    
  3. Run the Composer dump-autoload command to regenerate the autoloader:

    composer dump-autoload
    

Configuration

After installing the package, you need to configure the required values for it to work properly with the Microsoft Graph API.

Make sure to set the email.protocol config key to msgraph protocol and provide the following values in the .env file:

  • graphTenantId: The Azure AD tenant ID.
  • graphClientId: The client ID registered in Azure AD.
  • graphClientSecret: The client secret registered in Azure AD.

Example configuration:

# Email
email.protocol='msgraph'

# GraphMailer
graphmailer.graphTenantId='your-tenant-id',
graphmailer.graphClientId='your-client-id',
graphmailer.graphClientSecret='your-client-secret',

Usage

Once configured, you can use the original \Codeigniter\Email\Email methods to configure and send emails through the Microsoft Graph API.

Contributions

Docker Support

This project includes Docker support for a consistent development environment. You can use the provided docker-compose.yml file to build and run the application in a containerized setup.

To start the Docker environment, run:

docker-compose up -d --build

This will set up the PHP-FPM service with Xdebug enabled for development. Ensure you have Docker and Docker Compose installed on your system before running the command.

统计信息

  • 总下载量: 83
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固