PHP code example of nlocascio / mindbody-laravel

1. Go to this page and download the library: Download nlocascio/mindbody-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nlocascio / mindbody-laravel example snippets


Nlocascio\Mindbody\MindbodyServiceProvider::class

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

use Nlocascio\Mindbody\Mindbody;

public function index()
{
    $mindbody = resolve(Mindbody::class);
    
    $mindbody->GetClients();
}

$mindbody = resolve(Mindbody::class);

$result = $mindbody->GetSites();

$mindbody = resolve(Mindbody::class);

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