PHPackages                             mpclarkson/freshdesk-laravel - 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. mpclarkson/freshdesk-laravel

ActiveLaravel-package[API Development](/categories/api)

mpclarkson/freshdesk-laravel
============================

Laravel package for the Freshdesk API (v2)

0.3.0(9y ago)1767.3k↓50%41[5 issues](https://github.com/mpclarkson/freshdesk-laravel/issues)MITPHP

Since Apr 22Pushed 6y ago3 watchersCompare

[ Source](https://github.com/mpclarkson/freshdesk-laravel)[ Packagist](https://packagist.org/packages/mpclarkson/freshdesk-laravel)[ Docs](https://github.com/mpclarkson/freshdesk-laravel)[ RSS](/packages/mpclarkson-freshdesk-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Freshdesk Service Provider for Laravel 5
========================================

[](#freshdesk-service-provider-for-laravel-5)

[![Build Status](https://camo.githubusercontent.com/1321b551a2a5a75b343a72408a1c6e0eedc003338891d65464d17cdf8297703e/68747470733a2f2f7472617669732d63692e6f72672f6d70636c61726b736f6e2f66726573686465736b2d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mpclarkson/freshdesk-laravel)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/08fe83fb776e58aa59449d1f467e6193460ac9abdf6d8f623a73e78c74949db4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d70636c61726b736f6e2f66726573686465736b2d6c61726176656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mpclarkson/freshdesk-laravel/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/67cd021f2f0fbfaf0f3d6a8c2b97fb68b9ee929b18264c64261f5d72a76d58b5/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f39626337626539372d336564312d343839352d393434652d3035363538656464376134662e737667)](https://insight.sensiolabs.com/projects/9bc7be97-3ed1-4895-944e-05658edd7a4f)[![Packagist](https://camo.githubusercontent.com/3d6d3677e6975d47c955754350a8f1da96f959a94304d27ff05da38975cbb09a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d70636c61726b736f6e2f66726573686465736b2d7068702d73646b2e737667)](https://packagist.org/packages/mpclarkson/freshdesk-php-sdk)

This is a service provider for interacting with the Freshdesk API v2 via the [freshdesk-php-sdk](https://github.com/mpclarkson/freshdesk-php-sdk) in Laravel and Lumen applications.

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

[](#installation)

To add this bundle to your app, use [Composer](https://getcomposer.org).

Add `mpclarkson/freshdesk-laravel` to your **composer.json** file:

```
{
    "require": {
        "mpclarkson/freshdesk-laravel": "dev-master"
    }
}
```

Then run:

```
composer update
```

You must then register the provider in your application.

Register the provider in the `providers` key in your `config/app.php`:

```
    'providers' => array(
        // ...
        Mpclarkson\Laravel\Freshdesk\FreshdeskServiceProvider::class,
    )
```

Then add the Freshdesk facade alias in the `aliases` key in your `config/app.php`:

```
    'aliases' => array(
        // ...
        'Freshdesk' => Mpclarkson\Laravel\Freshdesk\FreshdeskFacade::class,
    )
```

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

[](#configuration)

To customize the configuration file, publish the package configuration using Artisan.

```
php artisan vendor:publish
```

Update the settings in the `app/config/freshdesk.php` file.

```
return [
    'api_key' => 'your_freshdesk_api_key',
    'domain' => 'your_freshdesk_domain',
];
```

Accessing the Freshdesk API
---------------------------

[](#accessing-the-freshdesk-api)

In a controller you can access Freshdesk resource as follows:

```
//Contacts
$contacts = Freshdesk::contacts()->update($contactId, $data);

//Agents
$me = Freshdesk::agents()->current();

//Companies
$company = Freshdesk::companies()->create($data);

//Groups
$deleted = Freshdesk::groups()->delete($groupId);

//Tickets
$ticket = Freshdesk::tickets()->view($filters);

//Time Entries
$time = Freshdesk::timeEntries()->all($ticket['id']);

//Conversations
$ticket = Freshdesk::conversations()->note($ticketId, $data);

//Categories
$newCategory = Freshdesk::categories()->create($data);

//Forums
$forum = Freshdesk::forums()->create($categoryId, $data);

//Topics
$topics =Freshdesk::topics()->monitor($topicId, $userId);

//Comments
$comment = Freshdesk::comments()->create($forumId);

//Email Configs
$configs = Freshdesk::emailConfigs()->all();

//Products
$product = Freshdesk::products()->view($productId);

//Business Hours
$hours = Freshdesk::businessHours()->all();

//SLA Policy
$policies = Freshdesk::slaPolicies()->all();
```

### Filtering

[](#filtering)

All `GET` requests accept an optional `array $query` parameter to filter results. For example:

```
//Page 2 with 50 results per page
$page2 = Freshdesk::forums()->all(['page' => 2, 'per_page' => 50]);

//Tickets for a specific customer
$tickets = Freshdesk::tickets()->view(['company_id' => $companyId]);
```

Please read the Freshdesk documentation for further information on filtering `GET` requests.

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

[](#contributing)

This is a work in progress and PRs are welcome. Please read the [contributing guide](.github/CONTRIBUTING.md).

Author
------

[](#author)

The library was written and maintained by [Matthew Clarkson](http://mpclarkson.github.io/)from [Hilenium](https://hilenium.com).

References
----------

[](#references)

- [Freshdesk PHP SDK](https://github.com/mpclarkson/freshdesk-php-sdk)
- [Freshdesk API Documentation](https://developer.freshdesk.com/api/)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~60 days

Total

4

Last Release

3493d ago

### Community

Maintainers

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

---

Top Contributors

[![mpclarkson](https://avatars.githubusercontent.com/u/4843821?v=4)](https://github.com/mpclarkson "mpclarkson (1 commits)")[![phroggyy](https://avatars.githubusercontent.com/u/7256451?v=4)](https://github.com/phroggyy "phroggyy (1 commits)")

---

Tags

freshdeskfreshdesk-apilaravellumenapilaravelsupporthelp deskFreshdeskcustomer service

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mpclarkson-freshdesk-laravel/health.svg)

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

###  Alternatives

[mpclarkson/freshdesk-php-sdk

PHP SDK for the Freshdesk API (v2)

34674.8k5](/packages/mpclarkson-freshdesk-php-sdk)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

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