承接 avoutic/web-framework-postmark 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

avoutic/web-framework-postmark

最新稳定版本:3.0.1

Composer 安装命令:

composer require avoutic/web-framework-postmark

包简介

The Postmark module for web-framework

README 文档

README

This module provides Postmark email service integration for WebFramework.

Features

  • Send raw emails via Postmark
  • Send template-based emails via Postmark
  • Automatic instrumentation for email sending
  • Configurable default sender email
  • Error handling for common Postmark API issues

Requirements

  • PHP 8.2 or higher
  • Web Framework 8.x
  • Postmark API key

Installation

Install via Composer:

composer require avoutic/web-framework-postmark

Make sure the definitions file is included in your project by adding it to definition_files in your config.php file:

return [
    'definition_files' => [
        '../vendor/avoutic/web-framework/definitions/definitions.php',
        '../vendor/avoutic/web-framework-postmark/definitions/definitions.php',
        'app_definitions.php',
    ],
];

Usage

The module provides Postmark integration for WebFramework, enabling email sending. It implements the WebFramework MailService and MailBackend interfaces to send emails.

To use Postmark for email sending you need to add it in your PHP-DI definitions:

return [
    MailService::class => DI\autowire(PostmarkMailService::class),
    MailBackend::class => DI\autowire(PostmarkMailService::class),
];

Configuration

If you are using the definition from definitions/defitinions.php. You can just add the following postmark.php to your auth config directory (config/auth):

<?php

return 'your-api-key-here';

License

MIT License - see LICENSE file for details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-29