PHPackages                             frankkessler/incontact-laravel-oauth2-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. [HTTP &amp; Networking](/categories/http)
4. /
5. frankkessler/incontact-laravel-oauth2-rest

ActiveProject[HTTP &amp; Networking](/categories/http)

frankkessler/incontact-laravel-oauth2-rest
==========================================

An inContact REST api wrapper utilizing oAuth2

v0.2.4(9y ago)098MITPHPPHP &gt;=5.5.9

Since Jan 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/frankkessler/incontact-laravel-oauth2-rest)[ Packagist](https://packagist.org/packages/frankkessler/incontact-laravel-oauth2-rest)[ RSS](/packages/frankkessler-incontact-laravel-oauth2-rest/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (11)Versions (14)Used By (0)

[![Travis CI Build Status](https://camo.githubusercontent.com/773b2f81d71aebb5e923441b5691b4c28064670fee90b7dc5df852c5363ff607/68747470733a2f2f6170692e7472617669732d63692e6f72672f6672616e6b6b6573736c65722f696e636f6e746163742d6c61726176656c2d6f61757468322d726573742e737667)](https://travis-ci.org/frankkessler/incontact-laravel-oauth2-rest/)[![Coverage Status](https://camo.githubusercontent.com/139cd7511c03a0e770bf207f2ac2b069703543071fccc70e99e431a3c6a16df4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6672616e6b6b6573736c65722f696e636f6e746163742d6c61726176656c2d6f61757468322d726573742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/frankkessler/incontact-laravel-oauth2-rest?branch=master)[![StyleCI](https://camo.githubusercontent.com/7cee429fb270cc6aab2b056fbd46d6d5f5a0a6f0513675f6c3adfae5348c9da9/68747470733a2f2f7374796c6563692e696f2f7265706f732f34353936303430312f736869656c64)](https://styleci.io/repos/45960401)[![Latest Stable Version](https://camo.githubusercontent.com/2e2384c8e822be903a5a98fa9e2abf031cf25dd6e6c7bc6224c21d0a449f0fcf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6672616e6b6b6573736c65722f696e636f6e746163742d6c61726176656c2d6f61757468322d726573742e737667)](https://packagist.org/packages/frankkessler/incontact-laravel-oauth2-rest)

INSTALLATION
============

[](#installation)

To install this package, add the following to your composer.json file

```
frankkessler/incontact-laravel-oauth2-rest: "0.2.*"
```

LARAVEL 5 SPECIFIC INSTALLATION TASKS
-------------------------------------

[](#laravel-5-specific-installation-tasks)

Add the following to your config/app.php file in the providers array

```
Frankkessler\Incontact\Providers\IncontactLaravelServiceProvider::class,
```

Add the following to your config/app.php file in the aliases array

```
'Incontact'    => Frankkessler\Incontact\Facades\Incontact::class,
```

Run the following command to pull the project config file and database migration into your project

```
php artisan vendor:publish
```

Run the migration

```
php artisan migrate
```

\##OPTIONAL INSTALLATION

Logging is enabled by default if using Laravel. If not, add the following to the $config parameter when initializing the Incontact class. (This class must implement the Psr\\Log\\LoggerInterface interface.)

```
'incontact.logger' => $class_or_class_name
```

\#TOKEN SETUP

Currently, this package only supports the username/password flow for oauth2.

To get started, you'll have to setup an Application in Incontact.

1. Navigate to Manage -&gt; API Applications
2. Click "Create API Application"
3. Select "Register Internal Application"
4. Fill out the form keeping in mind that your OAUTH\_CONSUMER\_TOKEN will be \[APPLICATION\_NAME\]@\[VENDOR\_NAME\]
5. Save and find your business unit if which will be your OAUTH\_CONSUMER\_SECRET.

Now that you have your Consumer Token and Consumer Secret, add them to your .env file:

```
INCONTACT_OAUTH_DOMAIN=api.incontact.com
INCONTACT_OAUTH_CONSUMER_TOKEN=[APPLICATION_NAME]@[VENDOR_NAME]
INCONTACT_OAUTH_CONSUMER_SECRET=BUSINESS_UNIT_NUMBER
INCONTACT_OAUTH_SCOPES=RealTimeApi AdminApi ReportingApi
INCONTACT_OAUTH_USERNAME=YOUR_INCONTACT_USERNAME
INCONTACT_OAUTH_PASSWORD=YOUR_INCONTACT_PASSWORD
```

EXAMPLES
========

[](#examples)

AdminApi
--------

[](#adminapi)

### Get Agents

[](#get-agents)

```
$incontact = new \Frankkessler\Incontact\Incontact();

$result = $incontact->AdminApi()->agents();

foreach($result['agents'] as $record) {
    $agentId =  $record['AgentId'];
}
```

ReportingApi
------------

[](#reportingapi)

### Get Call by Contact Id

[](#get-call-by-contact-id)

```
$incontact = new \Frankkessler\Incontact\Incontact();

$result = $incontact->ReportingApi()->contact('9999999999');

foreach($result as $record) {
    $contactId = $record['contactId'];
}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~47 days

Recently: every ~2 days

Total

6

Last Release

3568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80184c74c57baaff6ac4e3ef7152c2db3d79719f69fafe1fdcc346f4837a402a?d=identicon)[frankkessler](/maintainers/frankkessler)

---

Top Contributors

[![frankkessler](https://avatars.githubusercontent.com/u/1131687?v=4)](https://github.com/frankkessler "frankkessler (60 commits)")

---

Tags

restoauth2incontact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frankkessler-incontact-laravel-oauth2-rest/health.svg)

```
[![Health](https://phpackages.com/badges/frankkessler-incontact-laravel-oauth2-rest/health.svg)](https://phpackages.com/packages/frankkessler-incontact-laravel-oauth2-rest)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M123](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M125](/packages/laravel-pulse)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k17](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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