2017 © Pedro Peláez
 

library osticket-php-client

Rest php client for osticket

image

thecsea/osticket-php-client

Rest php client for osticket

  • Monday, October 3, 2016
  • by carduz
  • Repository
  • 2 Watchers
  • 4 Stars
  • 1,448 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

osticket-php-client

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Rest php client for osticket, (*2)

Features

Ositcket features

  • [x] Creation of tickets
  • [ ] Attachments
  • [ ] Execution of cron

Other/TODO

  • [ ] Unit tests
  • [ ] Laravel integration
  • [x] 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, (*3)

The Versions

03/10 2016

dev-master

9999999-dev

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

13/08 2016

0.1.6

0.1.6.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

10/08 2016

0.1.5

0.1.5.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

08/08 2016

0.1.4

0.1.4.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

07/08 2016

0.1.3

0.1.3.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

07/08 2016

0.1.2

0.1.2.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

07/08 2016

0.1.1

0.1.1.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket

07/08 2016

0.1.0

0.1.0.0

Rest php client for osticket

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

rest client osticket