PHPackages                             homedesignshops/laravel-zendesk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. homedesignshops/laravel-zendesk

ActiveLibrary

homedesignshops/laravel-zendesk
===============================

A Laravel Zendesk wrapper for the Zendesk API client

1.0.3(7y ago)1216[1 PRs](https://github.com/homedesignshops/laravel-zendesk/pulls)MITPHP

Since Feb 22Pushed 6y agoCompare

[ Source](https://github.com/homedesignshops/laravel-zendesk)[ Packagist](https://packagist.org/packages/homedesignshops/laravel-zendesk)[ RSS](/packages/homedesignshops-laravel-zendesk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

[![](https://camo.githubusercontent.com/b13f6a4f489ed19d2d02963bcc5e5cecd563e51fe56d979b1c91e5c4bdccd0e7/68747470733a2f2f7777772e666565646261636b636f6d70616e792e636f6d2f73616d656e766f6f726465656c2f696d672f6c6f676f2f7468756d626e61696c2f6c6f676f2d746865666565646261636b636f6d70616e792e706e67)](https://camo.githubusercontent.com/b13f6a4f489ed19d2d02963bcc5e5cecd563e51fe56d979b1c91e5c4bdccd0e7/68747470733a2f2f7777772e666565646261636b636f6d70616e792e636f6d2f73616d656e766f6f726465656c2f696d672f6c6f676f2f7468756d626e61696c2f6c6f676f2d746865666565646261636b636f6d70616e792e706e67)

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/homedesignshops/laravel-zendesk)[![Total Downloads](https://camo.githubusercontent.com/6db3e80417ec09af7969cc5c96923d3644b6f1ad7c9f1c7023c5c158e4bff46e/68747470733a2f2f706f7365722e707567782e6f72672f686f6d6564657369676e73686f70732f6c61726176656c2d7a656e6465736b2f642f746f74616c2e737667)](https://packagist.org/packages/homedesignshops/laravel-zendesk)[![Latest Stable Version](https://camo.githubusercontent.com/9b1e8df9f6da3746deee97e7c7b35845a9108e5359f2801d9b65f64fcb100a93/68747470733a2f2f706f7365722e707567782e6f72672f686f6d6564657369676e73686f70732f6c61726176656c2d7a656e6465736b2f762f737461626c652e737667)](https://packagist.org/packages/homedesignshops/laravel-zendesk)[![License](https://camo.githubusercontent.com/0127a0667744e7a40162f301689787d2c12c534a65278f57e96c887ed256402e/68747470733a2f2f706f7365722e707567782e6f72672f686f6d6564657369676e73686f70732f6c61726176656c2d7a656e6465736b2f6c6963656e73652e737667)](https://packagist.org/packages/homedesignshops/laravel-zendesk)

Laravel Zendesk
===============

[](#laravel-zendesk)

This package provides an elegant wrapper for the official [Zendesk API](https://github.com/zendesk/zendesk_api_client_php) php library. It supports creating tickets, retrieving and updating tickets, deleting tickets, etc.

Installation
------------

[](#installation)

Install this package via Composer using:

```
composer require homedesignshops/laravel-zendesk
```

> Laravel 5.5+ users: Skip the Service Provider installation below, because the package is configured for [Package Discovery](https://laravel.com/docs/5.7/packages#package-discovery).

```
// config/app.php
'providers' => [
    ...
    Huddle\Zendesk\Providers\ZendeskServiceProvider::class,
    ...
];
```

Configuration
-------------

[](#configuration)

Publish the config file to `app/config/zendesk.php` run:

```
php artisan vendor:publish --provider="HomeDesignShops\Zendesk\ZendeskServiceProvider"
```

Set your configuration using **environment variables** in your `.env` file:

`ZENDESK_SUBDOMAIN`

The subdomain part of your Zendesk organisation.

> Example: If your organisation domain is , then use **homedesignshops** as the subdomain

`ZENDESK_USERNAME`
The username for the authenticating account in your Zendesk organisation.

`ZENDESK_TOKEN`
The API access token. This can be a `basic` token or your `oauth` token. You can manage your tokens one at: `https://{SUBDOMAIN}.zendesk.com/agent/admin/api/settings`

Usage
-----

[](#usage)

### Helper

[](#helper)

The `Zendesk` helper acts as a wrapper for an instance of the `Zendesk\API\Client` class. You can find all the methods available on this class in the [zendesk/zendesk\_api\_client\_php](https://github.com/zendesk/zendesk_api_client_php#usage) repository. All of the methods are available through the helper.

#### Examples

[](#examples)

```
