PHPackages                             nlocascio/mindbody-laravel-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nlocascio/mindbody-laravel-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nlocascio/mindbody-laravel-auth
===============================

MINDBODY Auth Wrapper for Laravel

v0.4.0(9y ago)2101MITPHPPHP ^7.0

Since Nov 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nlocascio/mindbody-laravel-auth)[ Packagist](https://packagist.org/packages/nlocascio/mindbody-laravel-auth)[ RSS](/packages/nlocascio-mindbody-laravel-auth/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (7)Versions (11)Used By (0)

Laravel MINDBODY Auth
=====================

[](#laravel-mindbody-auth)

This package is a Laravel User Provider which authenticates user logins through MINDBODY. It exposes two auth drivers: one for authenticating Client credentials, and one for authenticating Staff credentials.

Requirements
------------

[](#requirements)

This package requires:

- PHP **7.0**+
- Laravel **5.1**+
- Nlocascio/Mindbody-Laravel **0.2.0**+

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

[](#installation)

Install the package through Composer:

```
composer require nlocascio/mindbody-laravel-auth
```

**This package requires `nlocascio/mindbody-laravel` to communicate with the MINDBODY API. You must [configure that package first](https://github.com/nlocascio/mindbody-laravel) before proceeding.**

### Laravel

[](#laravel)

#### Register the Service Provider

[](#register-the-service-provider)

In `config/app.php`, append to the `providers` key **before** `App\Providers\AuthServiceProvider::class` is declared:

```
Nlocascio\MindbodyAuth\MindbodyAuthServiceProvider::class
```

#### Configure the User Provider

[](#configure-the-user-provider)

In your app's `config/auth.php`, add the following to the `providers` key:

##### For authenticating Clients with MINDBODY:

[](#for-authenticating-clients-with-mindbody)

```
'mindbody_clients' => [
    'driver' => 'mindbody_client',
    'model' => App\User::class
],
```

##### For authenticating Staff with MINDBODY:

[](#for-authenticating-staff-with-mindbody)

```
'mindbody_staff' => [
    'driver' => 'mindbody_staff',
    'model' => App\User::class
]
```

Note that your `model` can point to any Eloquent model which implements `Illuminate\Contracts\Auth\Authenticatable`. Depending on the needs of your application, you may prefer to have different models for different types of users; however, using the default `App/User.php` will work for many cases.

#### Configure the Authentication Guards

[](#configure-the-authentication-guards)

In your app's `config/auth.php`, add the following to the `guards` key:

##### For MINDBODY Client credentials:

[](#for-mindbody-client-credentials)

```
'mindbody_client' => [
    'driver' => 'session',
    'provider' => 'mindbody_client'
],
```

##### or for MINDBODY Staff credentials:

[](#or-for-mindbody-staff-credentials)

```
'mindbody_staff' => [
    'driver' => 'session',
    'provider' => 'mindbody_staff'
]
```

#### Use the Guards in your Middleware

[](#use-the-guards-in-your-middleware)

Now that you've registered and configured the guards, you may use them in your application by using the `auth:mindbody_client` or `auth:mindbody_staff` middleware.

You can set one of these guards to be the default authentication guard in `config/auth.php` under the `defaults` key:

```
'defaults' => [
    'guard'     => 'mindbody_client',      // or 'mindbody_staff'
    'passwords' => 'users',
],
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Recently: every ~10 days

Total

9

Last Release

3366d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

v0.4.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ae1c7318fdb82a1da82fdf0db450533321bc7d67218eab49788817259e7884f?d=identicon)[nlocascio](/maintainers/nlocascio)

---

Top Contributors

[![nlocascio](https://avatars.githubusercontent.com/u/10979131?v=4)](https://github.com/nlocascio "nlocascio (32 commits)")

---

Tags

authentication-guardslaravellaravel-mindbodymindbodylaravelmindbodylaravel mindbody auth provider

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nlocascio-mindbody-laravel-auth/health.svg)

```
[![Health](https://phpackages.com/badges/nlocascio-mindbody-laravel-auth/health.svg)](https://phpackages.com/packages/nlocascio-mindbody-laravel-auth)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M17](/packages/directorytree-ldaprecord-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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