PHP

Welcome to the Deskpro API. This section will guide you through creating an article form with PHP, from start to finish.

The first step is to create an API Key. Go to Admin > Apps > API Keys to create an API Key for yourself.

Next:

  1. Create a new directory on your computer

  2. Use composer to create a new project

  3. Use composer to install the PHP API Client‚Äč

  4. Create an empty form.php file

For example, from the command-line it might look something like this:

$ mkdir article-form
$ cd article-form/
$ composer init -n --name example/article-form
$ composer require deskpro/deskpro-api-client-php
$ touch form.php