sirumobile/zendesk-notifier 问题修复 & 功能扩展

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

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

sirumobile/zendesk-notifier

Composer 安装命令:

composer require sirumobile/zendesk-notifier

包简介

Symfony Zendesk Notifier Bridge

README 文档

README

Provides Zendesk integration for Symfony Notifier.

Requirements

  • PHP 7.3+/8.1+
  • Symfony Notifier 5.3+ and HttpClient components
  • Zendesk subdomain, username and API token

Installation

$ composer require sirumobile/zendesk-notifier

Add correct DSN with your Zendesk credentials to ENV. Then configure notifier and add ZendeskTransportFactory to your services.

# .env
ZENDESK_DSN=zendesk://USERNAME:TOKEN@SUBDOMAIN

You can get your API key from Zendesk Admin panel. If your Zendesk domain is yourcompany.zendesk.com and username support@yourcompany.com, the DSN would look something like this:

# .env
ZENDESK_DSN=zendesk://support@yourcompany.com:abc123@yourcompany
# ./config/packages/notifier.yaml
framework:
    notifier:
        chatter_transports:
            zendesk: '%env(ZENDESK_DSN)%'
# ./config/services.yaml
Siru\Notifier\Bridge\Zendesk\ZendeskTransportFactory:
    tags: [ chatter.transport_factory ]

Usage

By default, transport creates a Ticket on behalf of agent or admin. To create a Request on behalf of user, set the correct options using ZendOptions class.

$options = (new ZendeskOptions())
    ->subject('My message')
    ->asRequest()
    ->requester('some-user@domain');
$chatMessage = new ChatMessage('');
$chatMessage->options($options);

See ZendeskOptions for all available options.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固