New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hasfoug/freshdesk-laravel

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

Larablocks Analysis

hasfoug/freshdesk-laravel works with Laravel 6 to 9 (latest release 1.0, Feb 22, 2022), all past end of life (the last on Feb 6, 2024): no more fixes, even for security.

Laravel 5 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 6 to 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: Feb 22, 2022)
  • 159 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 22, 2022.
  • No releases in the last 12 months.
  • First released: Apr 22, 2016.
  • Monthly downloads: 159, up 141% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require hasfoug/freshdesk-laravel
Latest Version:1.0
PHP:^7.2|^8.0
Laravel:6 – 9
Older releases:5
License:MIT
Last Updated:Feb 22, 2022
Links: GitHub  ·  Packagist
Maintainer: hasfoug

Freshdesk Service Provider for Laravel 6+

Build Status Scrutinizer Code Quality SensioLabsInsight Packagist

This is a service provider for interacting with the Freshdesk API v2 via the freshdesk-php-sdk in Laravel and Lumen applications.

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

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

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

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

This is a work in progress and PRs are welcome. Please read the contributing guide.

Author

The library was written and maintained by Matthew Clarkson from Hilenium.

References

Alternatives to hasfoug/freshdesk-laravel

unicodeveloper/laravel-paystack

A Laravel Package for Paystack

1,250,701 649
ip2location/ip2location-laravel

Lookup for visitor's IP information, such as country, region, city, coordinates,...

649,382 79
helpscout/api-laravel

Service provider and facade to integrate the Help Scout Mailbox API 2.0 with Lar...

606,291 9
victorybiz/geoip-location

Get the geographical location of website visitors based on their IP addresses. S...

183,870 21
avanza-git/laravel-cas

Adds CAS support to Laravel 5.x - 13.x

3,845 0

Version History

Version Released PHP Laravel License
1.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
0.4.0 ^7.2|^8.0 ^6.0|^7.0|^8.0 MIT
0.3.0 ~5.1 MIT
0.2.2 ~5.1 MIT
0.2.1 ~5.1 MIT