PHPackages                             assaqqaf/zendesk-laravel-notification - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. assaqqaf/zendesk-laravel-notification

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

assaqqaf/zendesk-laravel-notification
=====================================

Zendesk Notifications driver

v0.4.2(9y ago)1624[1 issues](https://github.com/assaqqaf/zendesk/issues)MITPHPPHP &gt;=5.6.4

Since Jan 16Pushed 9y ago2 watchersCompare

[ Source](https://github.com/assaqqaf/zendesk)[ Packagist](https://packagist.org/packages/assaqqaf/zendesk-laravel-notification)[ Docs](https://github.com/assaqqaf/zendesk-laravel-notification)[ RSS](/packages/assaqqaf-zendesk-laravel-notification/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Zendesk notifications channel for Laravel 5.3 \[WIP\]
=====================================================

[](#zendesk-notifications-channel-for-laravel-53-wip)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/62a37cd29d7a76a94ac6e70773f9fc327ed9b65e9eec6e8fe14eeff7b4d647aa/68747470733a2f2f7472617669732d63692e6f72672f61737361717161662f7a656e6465736b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/assaqqaf/zendesk)[![StyleCI](https://camo.githubusercontent.com/1e80ea902600225651ad2130291560d7626b91f77a2f48ecc49593e8ac350c5c/68747470733a2f2f7374796c6563692e696f2f7265706f732f37383931323233392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/78912239)[![SensioLabsInsight](https://camo.githubusercontent.com/754b538e25efb1c6158945e40b9d4be0921e89c93252855be24b8a3972da9dfd/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31356431333861352d336332372d343136372d613563652d3163353539616535333131662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/15d138a5-3c27-4167-a5ce-1c559ae5311f)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e17068cab5164bcd5826864be87877b824af1fa02bbb3f4a93b5a09571a2fd29/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61737361717161662f7a656e6465736b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/assaqqaf/zendesk/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/79f691a613cd68ee21ea4fe0c3a7934326682a82c8a6c533af4ed4c770c3bbb8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61737361717161662f7a656e6465736b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/assaqqaf/zendesk/?branch=master)[![Build Status](https://camo.githubusercontent.com/ead89a149942242cf558617ea148078d7121945ae989e3f728a732a5bc32fa46/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61737361717161662f7a656e6465736b2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/assaqqaf/zendesk/build-status/master)

This package makes it easy to create [Zendesk API](https://developer.zendesk.com/) with Laravel 5.3.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Zendesk service](#setting-up-the-zendesk-service)
- [Usage](#usage)
    - [Available Message Methods](#available-message-methods)
    - [Events](#events)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require assaqqaf/zendesk-laravel-notification
```

Add the service provider to `config/app.php`:

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

### Setting up the Zendesk service

[](#setting-up-the-zendesk-service)

Add your Zendesk REST API Key to your `config/services.php`:

```
// config/services.php
...
'zendesk' => [
    'subdomin' => env('ZENDESK_API_SUBDOMIN'),
    'username' => env('ZENDESK_API_USERNAME'),
    'token' => env('ZENDESK_API_TOKEN'),
],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\Zendesk\ZendeskChannel;
use NotificationChannels\Zendesk\ZendeskMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return [ZendeskChannel::class];
    }

    public function toZendesk($notifiable)
    {
        return
            (new ZendeskMessage('Test Zendesk Notification', 'This will be sent as ticket body'));
    }
}
```

In order to let your Notification know which user you are targeting, add the `routeNotificationForZendesk` method to your Notifiable model.

This method needs to return the access token of the authorized Evernote user.

```
public function routeNotificationForZendesk()
{
    return [
        'name' => $this->name,
        'email' => $this->email,
    ];
}
```

### Available Message Methods

[](#available-message-methods)

- `subject('')`: Accepts a string value for the Zendesk ticket name.
- `description('')`: Accepts a string value for the Zendesk ticket description.
- `content('')`: Accepts a string value for the Zendesk ticket content message.
- `from('', '')`: Accepts a string value for the Zendesk ticket requester name, and email.
- `type('')`: Accepts a string value for the Zendesk ticket type. Allowed values are problem, incident, question, or task.
- `priority('')`: Accepts a string value for the Zendesk ticket priority. Allowed values are urgent, high, normal, or low.
- `status('')`: Accepts a string value for the Zendesk ticket status. Allowed values are new, open, pending, hold, solved or closed.
- `visible()`: Set the comment to be public.
- `tags([])`: Accepts an array value for the Zendesk ticket tags.
- `customField($id, $value)`: Set a new custom filed. Accept custom filed id as integer, and the value of the filed.
- `group('')`: Accepts an integer as the group id, to assign ticket to this group.
- `ticket()`: Accepts an integer as the ticket id. If thicket id is set, the notification will update this ticket.

### Events

[](#events)

The package trigger and event when the ticket is created or updated. The following event is available:

- `NotificationChannels\Zendesk\Events\ZendeskTicketWasCreated`
- `NotificationChannels\Zendesk\Events\ZendeskTicketWasUpdated`

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Abdullah Mohammed](https://github.com/assaqqaf)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.5% 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 ~0 days

Total

5

Last Release

3402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d754db6a1050eaa43e5d84205d6ba749f8538830ae2a463da6d78af1f10c188?d=identicon)[Abdullah.m](/maintainers/Abdullah.m)

---

Top Contributors

[![assaqqaf](https://avatars.githubusercontent.com/u/1142577?v=4)](https://github.com/assaqqaf "assaqqaf (21 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)

PHPackages © 2026

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