nichin79/zendesk-php

There is no license information available for the latest version (v1.0.8) of this package.

PHP Library for Zendesk

v1.0.8 2024-06-09 16:24 UTC

This package is auto-updated.

Last update: 2024-09-09 17:09:29 UTC


README

This is not a complete/full library for Zendesk API's. Development may vary depending on different needs for the moment.

Config

Subdomain and API credentials can easily be stored in .env file which can then be loaded via the dotenv library

The library uses https://developer.zendesk.com/api-reference as reference and use the different capabilities (Ticketing, Help Center, Live Chat etc) as modules which can be enabled via the configuration.

See examples\conf.php

Usage

See examples folder for configuration file + basic usage

The library is built in a way to try to match the structure of https://developer.zendesk.com/api-reference as much as possible. For example, the hierarchy shown in the Zendesk API Reference (Capabilites > Subsection > Page) is same/similar as when enabling the modules in the config.

'modules' => [
  'ticketing' => [
    'tickets' => ['attachments', comments],
    'search',
    'users' => ['identities']
  ],
  'helpcenter' => [
    'helpcenter' => ['articles', 'attachments', 'comments'],
    'federatedsearch' => ['records', 'sources', 'types']
  ]
]