PHPackages                             govtribe/laravel-kinvey - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. govtribe/laravel-kinvey

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

govtribe/laravel-kinvey
=======================

Laravel-Kinvey is a Kinvey package for Laravel 4.

1.3.x-dev(11y ago)83.0k2MITPHPPHP &gt;=5.4.0

Since May 21Pushed 11y ago2 watchersCompare

[ Source](https://github.com/GovTribe/laravel-kinvey)[ Packagist](https://packagist.org/packages/govtribe/laravel-kinvey)[ Docs](https://github.com/GovTribe/laravel-kinvey)[ RSS](/packages/govtribe-laravel-kinvey/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (10)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/29e99b067183d207cb7b02694841816021bf1e3fab1611678f30df5eb347fd8c/68747470733a2f2f7472617669732d63692e6f72672f476f7654726962652f6c61726176656c2d6b696e7665792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/GovTribe/laravel-kinvey)[![Coverage Status](https://camo.githubusercontent.com/af718bf3cdd181edd63d5415423ea24beda6730d1b034d072ea8453ab9b6c695/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f476f7654726962652f6c61726176656c2d6b696e7665792f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/GovTribe/laravel-kinvey?branch=master)

laravel-kinvey
==============

[](#laravel-kinvey)

This package provides integration between Kinvey's great back end as a service platform and Laravel 4. It's based on version 2 of their [REST API](http://devcenter.kinvey.com/rest/guides/getting-started). Sponsered by [GovTribe](https://govtribe.com).

[BaaS](http://en.wikipedia.org/wiki/Backend_as_a_service) providers like Kinvey can serve as a one stop shop for infrastructure. You give up a little in flexibility, but gain the simplicity of having one service provide several features across your app. I tailored this specifically to Laravel because I think that to get the most out of a service like Kinvey it needs to be tied closely to the framework you use.

- [Install](#installation)
- [Configure](#configure)
- [Use](#use)

Install
-------

[](#install)

Add laravel-kinvey to your composer.json file:

```
"require": {
  "govtribe/laravel-kinvey": "dev-master"
}

```

Run composer update:

```
$ composer update

```

Add these lines to the 'providers' array in your 'app/config/app.php' file:

```
'GovTribe\LaravelKinvey\LaravelKinveyServiceProvider',
'GovTribe\LaravelKinvey\LaravelKinveyAuthServiceProvider',

```

In the same file, add this line to the 'aliases' array:

```
'Kinvey' => 'GovTribe\LaravelKinvey\Facades\Kinvey',

```

In your 'app/config/database.php' file, change the default connection name to 'kinvey':

```
'default' => 'kinvey',

```

In your 'app/config/auth' file, change the driver to 'eloquent':

```
'driver' => 'eloquent'

```

In the same file, change the authentication model to 'GovTribe\\LaravelKinvey\\Database\\Eloquent\\User' (or use your own model that extends this one):

```
'model' => 'GovTribe\LaravelKinvey\Database\Eloquent\User',

```

Finally, publish the package's configuration:

```
$ php artisan config:publish govtribe/laravel-kinvey

```

Configure
---------

[](#configure)

You'll now have a blank configuration file under app/config/packages/govtribe/laravel-kinvey that will look something like this:

```
return array(

	/*
	| -----------------------------------------------------------------------------
	| Kinvey App Key, App Secret & Master Secret
	| -----------------------------------------------------------------------------
	|
	| These are available via your Kinvey console.
	|
	*/

	'appName' => '',
	'appKey' => '',
	'appSecret' => '',
	'masterSecret' => '',

	/*
	| -----------------------------------------------------------------------------
	| Kinvey REST API Host Endpoint & Version
	| -----------------------------------------------------------------------------
	|
	| The base endpoint and API version to use for all Kinvey requests.
	|
	*/

	'hostEndpoint' => 'https://baas.kinvey.com/',
	'version' => 2,

	/*
	| -----------------------------------------------------------------------------
	| Settings
	| -----------------------------------------------------------------------------
	|
	| Control the default authentication mode, logging etc.
	|
	*/

	'defaultAuthMode' => 'app',
	'logging' => false,
);
```

### Configuration Options

[](#configuration-options)

#### appName, appKey, appSecret and masterSecret

[](#appname-appkey-appsecret-and-mastersecret)

You'll need to add your application's name, key, secret and master secret. All of these are available via your application's [console](https://console.kinvey.com).

#### defaultAuthMode

[](#defaultauthmode)

You can set the default auth mode to either 'app' or 'admin'. If you use 'app', all requests wil default to using the using the Kinvey app secret. If you use admin, the default will be the Kinvey master secret. Regardless, you can change the auth mode on the fly with the client:

```
Kinvey::setAuthMode('admin'); // master secret
Kinvey::setAuthMode('app'); // app secret
```

#### logging

[](#logging)

Setting this to true will tell the client to log detailed information to Laravel's log system. This is mainly useful for debugging.

Use
===

[](#use)

The Eloquent, Database, and Auth components should map closely to the existing [Laravel documentation](http://laravel.com/docs). All of the usage examples should be documented in the package's test coverage.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

4210d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/688874?v=4)[Jay Hariani](/maintainers/jhariani)[@jhariani](https://github.com/jhariani)

---

Top Contributors

[![jhariani](https://avatars.githubusercontent.com/u/688874?v=4)](https://github.com/jhariani "jhariani (63 commits)")

---

Tags

Laravel 4Kinvey

### Embed Badge

![Health badge](/badges/govtribe-laravel-kinvey/health.svg)

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

###  Alternatives

[laravel/pulse

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

1.7k12.1M99](/packages/laravel-pulse)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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