PHPackages                             alexanderpoellmann/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. [API Development](/categories/api)
4. /
5. alexanderpoellmann/laravel-zendesk

ActiveLibrary[API Development](/categories/api)

alexanderpoellmann/laravel-zendesk
==================================

A Laravel wrapper for the Zendesk API client

v0.1.1(6mo ago)0323[4 PRs](https://github.com/AlexanderPoellmann/laravel-zendesk/pulls)MITPHPPHP ^8.4CI passing

Since Oct 4Pushed 1mo agoCompare

[ Source](https://github.com/AlexanderPoellmann/laravel-zendesk)[ Packagist](https://packagist.org/packages/alexanderpoellmann/laravel-zendesk)[ Docs](https://github.com/alexanderpoellmann/laravel-zendesk)[ GitHub Sponsors](https://github.com/AlexanderPoellmann)[ RSS](/packages/alexanderpoellmann-laravel-zendesk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (15)Versions (7)Used By (0)

A Laravel wrapper for the Zendesk API client
============================================

[](#a-laravel-wrapper-for-the-zendesk-api-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6c61f0f5426e8058e13a9aae9f0f4a090077f23f5b5ff553c30b545f74d7fe2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d7a656e6465736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexanderpoellmann/laravel-zendesk)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bf3bf8ecf6ce8152b524080dad25c5d7e178f842debc75ff5af70755af2eb4bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d7a656e6465736b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/alexanderpoellmann/laravel-zendesk/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ae2eb4f66b78994cac65236c666dbe47644ed85d9143465f2866ee450b15c756/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d7a656e6465736b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/alexanderpoellmann/laravel-zendesk/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/dca6b4ac33bc534860258a069947cfc51ec4ccb3c0a6237443ad7201f3ca5a94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d7a656e6465736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexanderpoellmann/laravel-zendesk)

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

[](#installation)

You can install the package via composer:

```
composer require alexanderpoellmann/laravel-zendesk
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-zendesk-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-zendesk-config"
```

This is the contents of the published config file:

```
return [
    //
];
```

Don't forget to add the following to your `config/services.php`:

```
return [
    'zendesk' => [
        'subdomain' => env('ZENDESK_SUBDOMAIN', null),
        'username' => env('ZENDESK_USERNAME', null),
        'token' => env('ZENDESK_TOKEN', null)
    ],
];
```

Usage
-----

[](#usage)

See also [https://github.com/zendesk/zendesk\_api\_client\_php/blob/master/README.md](https://github.com/zendesk/zendesk_api_client_php/blob/master/README.md).

```
// Basic usage

use AlexanderPoellmann\LaravelZendesk\Zendesk;

$zendesk = app(Zendesk::class);

// or

$zendesk = zendesk();

// Create or update a user

$user = zendesk()->createOrUpdateUser(
    firstName: 'John',
    lastName: 'Doe',
    email: 'john@example.com',
);

ray($user);

// Upload an attachment.

$media = $model->getFirstMedia(); // e.g. spatie/laravel-medialibrary

$upload = zendesk()->uploadAttachment(
    filePath: $media->getPath(),
    mimeType: $media->mime_type,
    fileName: $media->file_name,
);

ray($upload);

// Create an anonymous request

$request = zendesk()->createAnonymousRequest(
    firstName: 'John',
    lastName: 'Doe',
    email: 'john@example.com',
    recipientEmailAddress: 'support@example.com',
    subject: 'Help!',
    body: '"My printer is on fire!',
    uploads: [$upload->token], // optional
);

ray($request);

// Create a ticket

$ticket = zendesk()->createTicket(
    subject: 'The quick brown fox jumps over the lazy dog',
    body: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' .
          'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
    priority: Priorities::Normal,
    uploads: [$upload->token], // optional
]);

ray($ticket);

// Create a ticket by directly accessing the Zendesk API clients tickets() method

$ticket = zendesk()->authenticate()->tickets()->create([
    'subject'  => 'The quick brown fox jumps over the lazy dog',
    'comment'  => [
        'body' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' .
                  'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
    ],
    'priority' => 'normal'
]);

ray($ticket);
```

Through the `Zendesk` facade you may access any methods available on the `Zendesk\API\Client` class ([documentation](https://github.com/zendesk/zendesk_api_client_php#usage)).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [AlexanderPoellmann](https://github.com/AlexanderPoellmann)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance79

Regular maintenance activity

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~29 days

Total

2

Last Release

197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d780bcb538e8dfa5311d2d1bd17bad79e8b9b36e4e9eb4db980ef33c3a22b366?d=identicon)[AlexanderPoellmann](/maintainers/AlexanderPoellmann)

---

Top Contributors

[![AlexanderPoellmann](https://avatars.githubusercontent.com/u/6631793?v=4)](https://github.com/AlexanderPoellmann "AlexanderPoellmann (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelZendesklaravel-zendeskAlexanderPoellmann

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/alexanderpoellmann-laravel-zendesk/health.svg)

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

###  Alternatives

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

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