PHPackages                             vasylisa/mindbody-api - 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. vasylisa/mindbody-api

ActiveLibrary

vasylisa/mindbody-api
=====================

PHP library for interacting with the Mindbody Online API

1.0.1(7y ago)01793Apache-2.0PHP

Since Nov 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vasylisa/mindbody-api)[ Packagist](https://packagist.org/packages/vasylisa/mindbody-api)[ RSS](/packages/vasylisa-mindbody-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP Mindbody API Library
========================

[](#php-mindbody-api-library)

This library provides a set of PHP classes which allow one to interface with the [Mindbody SOAP API 0.5.1](http://www.mindbodyonline.com/api) in a fairly simple way.

The API's main documentation is available through the [API portal](https://developers.mindbodyonline.com/PublicDocumentation/GettingStarted).

Preparation
-----------

[](#preparation)

Before you can make use of this library, you will need to get a set of [API credentials from Mindbody](https://developers.mindbodyonline.com/Home/SignUp).

As well, you will need to know your Site ID. Your API credentials must be authorized for your Site ID using the SiteService::GetActivationCode method or use [Web-form](https://developers.mindbodyonline.com/PublicDocumentation/SiteActivation?version=v5.1) (require developer auth).

The API sandbox information can be found via the [API FAQ](https://developers.mindbodyonline.com/PublicDocumentation/FAQs?version=v5.1). You can use \[Sandbox account\]( .asp?studioid=-99) with username *Siteowner* and password *apitest1234*.

This library will of course require the SOAP extension be installed and enabled in your PHP installation, and allow\_url\_fopen must be enabled.

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

[](#installation)

The most simple method of installation is via [Composer](http://getcomposer.org/). Simply add the [vasylisa/mindbody-api](https://packagist.org/packages/vasylisa/mindbody-api) package as a requirement and update your project.

Alternatively, you can simply clone this project from [GitHub](https://github.com/vasylisa/mindbody-api).

This library supports PSR-0 autoloading, though you need to register the MindbodyAPI namespace as being in the root of the library, as opposed to vendor-prefixed.

Basic Usage
-----------

[](#basic-usage)

Here is a very basic usage example for the Site Service class, which should print out a full informational listing on locations associated with your specified site.

```
