PHPackages                             ingmarheinrich/freshdesk-rest - 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. ingmarheinrich/freshdesk-rest

ActiveLibrary

ingmarheinrich/freshdesk-rest
=============================

A simple wrapper for the Freshdesk REST API. Freshdesk themselves are aware of this repo, and it is currently listed as the only third-party PHP wrapper

00PHP

Since Oct 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ingmarheinrich/freshdesk-rest)[ Packagist](https://packagist.org/packages/ingmarheinrich/freshdesk-rest)[ RSS](/packages/ingmarheinrich-freshdesk-rest/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/2ec0907fac21cc0acb4f530a5f7341074a58127231766b45a2cd0abfecd36b39/68747470733a2f2f7472617669732d63692e6f72672f45564f44656c61766567612f66726573686465736b2d726573742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/EVODelavega/freshdesk-rest)

FreshDesk.com PHP API Wrapper
=============================

[](#freshdeskcom-php-api-wrapper)

The "composer-aware edition".

Highlights
----------

[](#highlights)

Composer, obviously, but apart from that, this feature branch offers:

- Namespace support
- A "Rest" class, that can be extended easily
- Will become 100% Object Oriented (no more passing around tons of strings of data)
- Easy integration with MVC frameworks like Zend, Symfony2

Ways To Improve
---------------

[](#ways-to-improve)

1. Still being work in progress: separation of concern is something that needs a lot of work (being tackled in the feature/beta branch ATM)
2. Better documentation + WIKI on how to contribute
3. Out of the box support for filters, statuses and the like (through class-constants)
4. Tests have been added, but they can be improved on, still

Usage
-----

[](#usage)

Add this repo to your composer.json file to use this repository as a direct dependency.

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/EVODelavega/freshdesk-rest.git"
        }
    ],
    "require": {
        "EVODelavega/freshdesk-rest": "dev-master"
    }
}
```

This package has been added to packagist, too. Packagist only accepts lower-case package names, so simply adding the following will work:

```
{
    "require": {
        "evodelavega/freshdesk-rest": "dev-master"
    }
}
```

If you are going to use this wrapper to create new tickets in freshdesk, there is a postUpdate/postInstall script you can use to set the cc-email constant in the Freshdesk\\Model\\Ticket class. To automatically configure this constant, add the following to your *scripts* section in the composer.json file (Note: This feature is deprecated):

```
"scripts": {
    "post-install-cmd": [
        "Freshdesk\\Config\\Composer::postUpdate"
    ],
    "post-update-cmd": [
        "Freshdesk\\Config\\Composer::postUpdate"
    ]
}
```

Example usage (taken from the example.php file)

```
