PHPackages                             hutsi/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hutsi/yii2-zendesk

ActiveExtension[Utility &amp; Helpers](/categories/utility)

hutsi/yii2-zendesk
==================

Yii2 zendesk plugin

v3.4(9y ago)61.7k↓41.7%3[1 issues](https://github.com/hutsi/yii2-zendesk/issues)GPL-v3PHPPHP &gt;=5.4.0

Since Sep 23Pushed 9y ago3 watchersCompare

[ Source](https://github.com/hutsi/yii2-zendesk)[ Packagist](https://packagist.org/packages/hutsi/yii2-zendesk)[ RSS](/packages/hutsi-yii2-zendesk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

yii2-zendesk
============

[](#yii2-zendesk)

Yii2 plugin for zendesk service support ()

How to use:
-----------

[](#how-to-use)

Add the following line to composer.json, **require** section

```
"require": {
    "hutsi/yii2-zendesk": ">=3.3",
}
```

Add a component to your main.php config file

```
'components' =>
    'zendesk' => [
        'class' => 'hutsi\zendesk\Client',
        'apiKey' => 'YOUR_API_KEY',
        'user' => 'YOUR_USER',
        'baseUrl' => 'https://SUBDOMAIN.zendesk.com/api/v2',
        'password' => 'YOUR_PASSWORD',
        'authType' => 'basic'
    ]
]
```

The most simple example is: Create an instance of Zendesk Client

```
$client = new hutsi\zendesk\Client();
```

Execute

```
$results = $client->execute('GET', '/users.json', []);

```

OR

```
$results = $client->get('/users.json', []);
```

Another variant is to use build-in plugin functions to work with Users, Tickets, Search, Attachments instances. In your form handler use:

```
use yii\helpers\StringHelper;
use hutsi\zendesk\Attachment;
use hutsi\zendesk\Search;
use hutsi\zendesk\Ticket;
use hutsi\zendesk\User;
use Yii;
use yii\web\UploadedFile;
```

If you wants to use upload, you should use a well-known `\yii\web\UploadedFile` instanse

```
$uploadedFile = new UploadedFile(['tempName' => 'YOUR_FILE_TEMPNAME', 'name' => 'YOUR_FILE_NAME]);
```

Then - create and save zendesk Attachment instance from UploadedFile

```
$zAttachment = new Attachment(['uploadedFile' => $uploadedFile]);
$token = $zAttachment->save();
```

You can also use zendesk search API for existing Users of your zendesk account If there are no such users - let's create it

```
$search = new Search(['query' => ['email' => '"user@example.com"']]);
if ($zUsers = $search->users()) {
    $zUser = $zUsers[0];
} else {
    $zUser = new User(['email' => 'user@example.com');
    $zUser->save();
}
```

And finally, it's time to create a Ticket instance

```
$zTicket = new Ticket([
    'requester_id' => $zUser->id,
    'requester' => [
        'email' => $zUser->email
    ],
    'subject' => StringHelper::truncate('Problem: Authorization', 100),
    'comment' => [
        'body' => 'Authorization not works!'
    ],
]);
```

If we had an uploads - attach them to a ticket comment field

```
$zTicket->comment['uploads'] = isset($token) && $token ? [$token] : null;
$zTicket->save();
```

Thats all.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~110 days

Total

8

Last Release

3412d ago

Major Versions

v1.0 → v2.02015-09-25

v2.1 → v3.02015-10-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b7e1f09271c27b83c4bb5319387ae45b70a1dab58f6d831f86fad949f30d3d3?d=identicon)[hutsi](/maintainers/hutsi)

---

Top Contributors

[![aderiushev](https://avatars.githubusercontent.com/u/2057586?v=4)](https://github.com/aderiushev "aderiushev (10 commits)")[![qwerjhwekufherkjg](https://avatars.githubusercontent.com/u/200355354?v=4)](https://github.com/qwerjhwekufherkjg "qwerjhwekufherkjg (3 commits)")[![stenleegunz](https://avatars.githubusercontent.com/u/14978099?v=4)](https://github.com/stenleegunz "stenleegunz (1 commits)")

### Embed Badge

![Health badge](/badges/hutsi-yii2-zendesk/health.svg)

```
[![Health](https://phpackages.com/badges/hutsi-yii2-zendesk/health.svg)](https://phpackages.com/packages/hutsi-yii2-zendesk)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
