plusforta/postmark-bundle 问题修复 & 功能扩展

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

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

plusforta/postmark-bundle

Composer 安装命令:

composer require plusforta/postmark-bundle

包简介

This bundle enables postmark template emails for symfony

README 文档

README

The plusforta/postmark-bundle is a bundle for the Symfony framework for sending template mails via PostmarkApp

Installation


## Versions

Right now this bundle is only used by the onlineantrag-php (ERP) project.  It is using version "^1.2"

| Version | Symfony Version | Branch |
|---------|:---------------:|--------|
| 1.0     |       5.4       | none   |
| 1.1     |       5.4       | none   |
| 1.2     |       6.3       | master |

## Configuration

The configuration can be created in `config/packages/plusforta_postmark.yaml` with the following structure:

```
plusforta_postmark:
  servers:
    - {name: 'plusforta.de', api_key: '%env(POSTMARK_KEY_PLUSFORTA)%'}
    - {name: 'test', api_key: '%env(POSTMARK_KEY_TEST)%'}
  defaults:
    from:
      email: "info@kautionsfrei.de"
      name: "PlusForta GmbH"
  overrides:
    to:
      email: jan.hentschel@plusforta.de
  disable_delivery: true

```

Specific configurations for the environments can be stored under dev, prod and test.

### Mandatory configuration information:

The server configuration must be specified:
`plusforta_postmark.servers`.
The value corresponds to the name of the server and its API key.

### Optional:

#### defaults

It is possible to create a default value for the sender (`plusforta_postmark.defaults.email`
or `plusforta_postmark.defaults.name`).

#### overrides

It is possible to permanently overwrite the recipient (`plusforta_postmark.overrides.to.email`). This is useful for
dev and staging environment.

#### disable delivery

It is possible to deactivate email delivery (`plusforta_postmark.disable_delivery`), which means that no emails are sent
and no communication
and there is no communication with the Postmark server. This is useful for the test environment.

## Create new email template

An example of a mail template is `src/Mail/KFKundenanfrageTemplateMail.php`.

1. email inherits from `PlusForta\PostmarkBundle\Mail\BaseTemplateMail`.
2. `SERVER_ID` must be specified. This server must be stored in the configuration (`plusforta_postmark.servers`).
3. `TEMPLATE_ID` or `TEMPLATE_ALIAS` must be set. The `TEMPLATE_ID` corresponds to the ID or ALIAS of the template in
   Postmark.
4. `$parameters` is an array with parameters that can be set for the template.
5. `getTemplate()` must be implemented. The return value is an associative array. A json_encode on the array
   must correspond to the required JSON for the template at Postmark. 

plusforta/postmark-bundle 适用场景与选型建议

plusforta/postmark-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 366 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 04 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 plusforta/postmark-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 plusforta/postmark-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 plusforta/postmark-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-29