PHPackages                             thefrozenfire/mindbodyapi - 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. [API Development](/categories/api)
4. /
5. thefrozenfire/mindbodyapi

ActiveLibrary[API Development](/categories/api)

thefrozenfire/mindbodyapi
=========================

PHP library for interacting with the Mindbody Online API

1.0.2(12y ago)4698.3k↓50%25[4 issues](https://github.com/TheFrozenFire/PHP-Mindbody-API-Library/issues)Apache-2.0PHP

Since Apr 18Pushed 10y ago9 watchersCompare

[ Source](https://github.com/TheFrozenFire/PHP-Mindbody-API-Library)[ Packagist](https://packagist.org/packages/thefrozenfire/mindbodyapi)[ RSS](/packages/thefrozenfire-mindbodyapi/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)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](http://www.mindbodyonline.com/api) in a fairly simple way.

The API's main documentation is available through the [API portal](http://api.mindbodyonline.com/).

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

[](#preparation)

Before you can make use of this library, you will need to get a set of [API credentials from Mindbody](https://support.mindbodyonline.com/entries/21301433-how-to-access-client-data-using-the-mindbody-api).

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.

The API sandbox information can be found via the [API FAQ](https://support.mindbodyonline.com/entries/22021573-api-faq#Howcanitest).

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

Additionally, if you are running the librarygenerator.php script, you must have the DOM extension enabled, and you must install [WSDL2PHP](http://www.urdalen.no/wsdl2php/) on your system.

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

[](#installation)

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

Alternatively, you can simply clone this project from [GitHub](https://github.com/TheFrozenFire/PHP-Mindbody-API-Library).

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.

```
