PHPackages                             drewm/frontapp - 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. drewm/frontapp

ActiveLibrary[API Development](/categories/api)

drewm/frontapp
==============

Super-simple, minimum abstraction FrontApp API wrapper

7121.4k↓68.7%4[1 PRs](https://github.com/drewm/frontapp/pulls)PHP

Since Oct 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/drewm/frontapp)[ Packagist](https://packagist.org/packages/drewm/frontapp)[ RSS](/packages/drewm-frontapp/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FrontApp API client
===================

[](#frontapp-api-client)

Super-simple, minimum abstraction [Front](https://frontapp.com) API wrapper, in PHP.

In the style of my [MailChimp wrapper](https://github.com/drewm/mailchimp-api), this lets you get from the FrontApp API docs to the code as directly as possible.

Requires PHP 5.4 and curl.

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

[](#installation)

You can install frontapp using Composer:

```
composer require drewm/frontapp

```

You will then need to:

- run `composer install` to get these dependencies added to your vendor directory
- add the autoloader to your application with this line: `require("vendor/autoload.php")`

Examples
--------

[](#examples)

Start by `use`-ing the class and creating an instance with your API key

```
use \DrewM\FrontApp\FrontApp;

$FrontApp = new FrontApp('abc123abc123abc123abc123abc123');
```

Then, list all your inboxes (with a `get` on the `inboxes` method)

```
$result = $FrontApp->get('inboxes');

print_r($result);
```

Create an inbox (with a `post` to the `inboxes` method):

```
$result = $FrontApp->post("inboxes", [
				'name' => 'Support'
			]);

print_r($result);
```

Update a channel member with more information (using `patch` to update):

```
$channel_id = 'cha_123';

$result = $FrontApp->patch("channels/$channel_id", [
				'settings' => [ 'webhook_url' => 'https://example.com/hook' ]
			]);

print_r($result);
```

Remove a contact using the `delete` method:

```
$contact_id = 'ctc_123';

$FrontApp->delete("contacts/$contact_id");
```

Quickly test for a successful action with the `success()` method:

```
$result = $FrontApp->get('inboxes');

if ($FrontApp->success()) {
	print_r($result);
} else {
	echo $FrontApp->getLastError();
}
```

Troubleshooting
---------------

[](#troubleshooting)

To get the last error returned by either the HTTP client or by the API, use `getLastError()`:

```
echo $FrontApp->getLastError();
```

For further debugging, you can inspect the headers and body of the response:

```
print_r($FrontApp->getLastResponse());
```

If you suspect you're sending data in the wrong format, you can look at what was sent to FrontApp by the wrapper:

```
print_r($FrontApp->getLastRequest());
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/818b5806bb09c97b6150c8756c6abe0afd16c79097c0396a26687d88cc28638d?d=identicon)[drewm](/maintainers/drewm)

---

Top Contributors

[![drewm](https://avatars.githubusercontent.com/u/225402?v=4)](https://github.com/drewm "drewm (7 commits)")[![selossevianney](https://avatars.githubusercontent.com/u/8401301?v=4)](https://github.com/selossevianney "selossevianney (1 commits)")[![toooni](https://avatars.githubusercontent.com/u/241080?v=4)](https://github.com/toooni "toooni (1 commits)")

### Embed Badge

![Health badge](/badges/drewm-frontapp/health.svg)

```
[![Health](https://phpackages.com/badges/drewm-frontapp/health.svg)](https://phpackages.com/packages/drewm-frontapp)
```

###  Alternatives

[facebook/php-business-sdk

PHP SDK for Facebook Business

90923.5M35](/packages/facebook-php-business-sdk)[exsyst/swagger

A php library to manipulate Swagger specifications

35916.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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