deskpro/deskpro-api-php

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

Library for using the DeskPRO API with PHP

dev-master 2020-06-04 16:27 UTC

This package is auto-updated.

Last update: 2024-02-05 00:24:03 UTC


README

The DeskPRO PHP SDK is a simple class to access and interact with DeskPRO's REST API. It wraps the actual requests up in an easy-to-use API of simple PHP calls.

For more information on the underlying REST API, please see our API documentation.

PHP SDK Requirements

The PHP SDK requires PHP >= 5.2 with the cURL extension.

Using The PHP SDK

The best way to get started with the PHP SDK is to view the fully functioning examples in the examples folder.

The following larger projects may also serve as a useful reference:

Full documentation on the underlying API is maintained in the API documentation section in our Knowledgebase.

Note that you can explore the API interactively on your own helpdesk using the DeskPRO API browser.

Quick Start

1. Clone or download this repository and put the source files somewhere in your project.

2. Include the deskpro-api.php file:

require 'deskpro-api.php';

3. Create a new instance of the API class:

$api = new \DeskPRO\Api('http://example.com/deskpro', '123:XYZ');

4. Use $api to send API requests to your DeskPRO helpdesk. Refer to the examples directory for fully-functional examples.

Using Composer

You can also install the API library through composer: https://packagist.org/packages/deskpro/deskpro-api-php

$ php composer.phar require deskpro/deskpro-api-php dev-master