g4/customer-support 问题修复 & 功能扩展

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

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

g4/customer-support

最新稳定版本:2.0.0

Composer 安装命令:

composer require g4/customer-support

包简介

customer support php library

README 文档

README

customer-support - php library

Install

Install through composer package manager. Find it on packagist.

composer require g4/customer-support

Usage

Zendesk instance

<?php
    
$adapter = 'Zendesk';
$options = (new \G4\Gateway\Options())
            ->addHeader('Authorization', 'Basic *********************************')
            ->addHeader('Content-Type', 'application/json');
$gateway = new \G4\Gateway\Http('url', $options);
$data = new Dictionary([
    'name'    =>  'test' 
    'email'   =>  'test@gmail.com' 
    'subject' =>  'test' 
    'comment' =>  'test' 
]);
    
$customerSupport = new (G4\CustomerSupport\CustomerSupportFactory)
$customerSupport
                ->setEmail(new Email($data->get('email')))
                ->setName(new StringLiteral($data->get('name')))
                ->setSubject(new StringLiteral($data->get('subject')))
                ->setComment(new StringLiteral($data->get('comment')))
                ->setGateway($gateway)
                ->setAdapter($adapter);
                ->createInstance()

Install dependencies

composer install

Run unit tests

make unit-tests

License

(The MIT License) see LICENSE file for details...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固