2017 © Pedro Peláez
 

library mindbody-laravel

Laravel wrapper for MINDBODY API

image

nlocascio/mindbody-laravel

Laravel wrapper for MINDBODY API

  • Tuesday, September 5, 2017
  • by nlocascio
  • Repository
  • 1 Watchers
  • 3 Stars
  • 173 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 17 Versions
  • 5 % Grown

The README.md

Laravel MINDBODY

Access the MINDBODY API from your Laravel application., (*1)

Latest Stable Version Packagist Downloads Software License Build Status, (*2)

Requirements

This package requires: - PHP 7.0+ - Laravel 5.1+, (*3)

You will also need the following credentials to access the MINDBODY API: - SourceCredentials consisting of your SourceName and Password - __Site ID__ (or multiple Site IDs) corresponding to the MINDBODY site(s) you are connecting to, (*4)

For API credentials and documentation, visit the MINDBODY Developers site., (*5)

Installation

Install the package through Composer:, (*6)

composer require nlocascio/mindbody-laravel

Registering the Service Provider

Append the service provider to the providers key in config/app.php:, (*7)

Nlocascio\Mindbody\MindbodyServiceProvider::class

Configuring API Credentials

Configure your API credentials by defining the following environment variables in .env:, (*8)

MINDBODY_SOURCENAME=                // Your Source Name
MINDBODY_SOURCEPASSWORD=            // Your Source Password
MINDBODY_SITEIDS=                   // Site ID. (Also accepts a comma-delimitted list of IDs)

Usage

Option 1: Type-hinting

You may type-hint the Mindbody class in methods of classes which are resolved by the service container:, (*9)

public function index(Mindbody $mindbody)
{
    $response = $mindbody->GetClients();
}

Option 2: Use Laravel's helper method

use Nlocascio\Mindbody\Mindbody;

public function index()
{
    $mindbody = resolve(Mindbody::class);

    $mindbody->GetClients();
}

Running API functions

Examples:, (*10)

$mindbody = resolve(Mindbody::class);

$result = $mindbody->GetSites();

With arguments:, (*11)

$mindbody = resolve(Mindbody::class);

$result = $mindbody->GetClients([
    'XMLDetail'         => 'Bare',
    'Fields'            => [
                                'Clients.FirstName',
                                'Clients.LastName'
                            ],
    'PageSize'          => 500,
    'CurrentPageIndex'  => 1,
    'SearchText'        => 'example@email.com'
]);

The Versions

05/09 2017

dev-master

9999999-dev

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

05/09 2017

v0.3.7

0.3.7.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

05/09 2017

dev-develop

dev-develop

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

16/04 2017

v0.3.6

0.3.6.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

13/04 2017

v0.3.5

0.3.5.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

13/04 2017

v0.3.4

0.3.4.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

12/04 2017

v0.3.3

0.3.3.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

12/04 2017

v0.3.2

0.3.2.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

12/04 2017

v0.3.1

0.3.1.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

25/03 2017

dev-nlocascio-patch-1

dev-nlocascio-patch-1

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

25/03 2017

v0.3.0

0.3.0.0

Laravel wrapper for MINDBODY API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nick LoCascio

laravel mindbody

03/01 2017

v0.2.4

0.2.4.0

Laravel wrapper for MINDBODY API

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Nick LoCascio

03/01 2017

v0.2.3

0.2.3.0

Laravel wrapper for MINDBODY API

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Nick LoCascio

22/11 2016

v0.2.2

0.2.2.0

Laravel wrapper for MINDBODY API

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Nick LoCascio

20/11 2016

v0.2.1

0.2.1.0

Laravel wrapper for MINDBODY API

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Nick LoCascio

20/11 2016

v0.2.0

0.2.0.0

Laravel wrapper for MINDBODY API

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Nick LoCascio

18/11 2016

0.1.0

0.1.0.0

Laravel wrapper for MINDBODY API

  Sources   Download

The Requires

 

The Development Requires

by Nick LoCascio