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

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

hasfoug/freshdesk-laravel
=========================

Laravel package for the Freshdesk API (v2). Added laravel 8 support

1.0(4y ago)04.5k1MITPHPPHP ^7.2|^8.0

Since Apr 22Pushed 4y agoCompare

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

READMEChangelogDependencies (3)Versions (7)Used By (0)

Freshdesk Service Provider for Laravel 6+
=========================================

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

[![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)

Run:

```
composer require hasfoug/freshdesk-laravel
```

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

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

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

[](#configuration)

Set these env variables:

```
FRESHDESK_API_KEY=
FRESHDESK_DOMAIN=
```

If you need to customize the config - you can publish it by running following command:

```
php artisan vendor:publish --provider="Mpclarkson\Laravel\Freshdesk\FreshdeskServiceProvider"
```

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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

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 ~426 days

Recently: every ~533 days

Total

6

Last Release

1585d ago

Major Versions

0.4.0 → 1.02022-02-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/03b05bcdb9045a5f7d64c33477d9d5b417710211f98e532f2638006478664bcb?d=identicon)[hasfoug](/maintainers/hasfoug)

---

Top Contributors

[![hasfoug](https://avatars.githubusercontent.com/u/26816621?v=4)](https://github.com/hasfoug "hasfoug (5 commits)")[![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

apilaravellaravel 6laravel 7laravel 8supporthelp deskFreshdeskcustomer service

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k13.5M60](/packages/knuckleswtf-scribe)[mpclarkson/freshdesk-laravel

Laravel package for the Freshdesk API (v2)

1767.6k](/packages/mpclarkson-freshdesk-laravel)[mpclarkson/freshdesk-php-sdk

PHP SDK for the Freshdesk API (v2)

34678.4k5](/packages/mpclarkson-freshdesk-php-sdk)

PHPackages © 2026

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