thecsea/osticket-php-client 问题修复 & 功能扩展

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

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

thecsea/osticket-php-client

最新稳定版本:0.1.7

Composer 安装命令:

composer require thecsea/osticket-php-client

包简介

Rest php client for osticket

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Rest php client for osticket

Features

Ositcket features

  • Creation of tickets
  • Attachments
  • Execution of cron

Other/TODO

  • Unit tests
  • Laravel integration
  • Load data by env
  • PHP doc
  • Force HTTPS
  • Better HTTPS status code manage (for example 303 and other 2xx)
  • Travis scrutinizer integration
  • Usage guide and wiki
  • Proxy

Examples

Create a ticket

use it\thecsea\osticket_php_client\OsticketPhpClient;
use it\thecsea\osticket_php_client\OsticketPhpClientException;

$support = new OsticketPhpClient($url, $apiKey);
try{
  $response = $client->newTicket()
              ->withName('test')
              ->withEmail('test@test.com')
              ->withPhone('0123456789')
              ->withSubject('subject')
              ->withMessage('message')
              ->withTopicId('1')
              ->getData();
  print $response;
}catch(OsticketPhpClientException $e){
  print $->getMessage();
}

Of course you can perform the request without inserting all fields.
You can also use withData method passing and array of data that is merged with the data set previously or with the defaut data

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2016-08-06