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

ActiveLibrary[API Development](/categories/api)

devincrossman/mindbody-php-api
==============================

A PHP wrapper for the MINDBODY Online API

1.6.1(11y ago)297.1k171MITPHPPHP &gt;=5.3.0

Since Jan 2Pushed 7y ago9 watchersCompare

[ Source](https://github.com/devincrossman/mindbody-php-api)[ Packagist](https://packagist.org/packages/devincrossman/mindbody-php-api)[ RSS](/packages/devincrossman-mindbody-php-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

mindbody-php-api
================

[](#mindbody-php-api)

PHP wrapper class for interacting with Mindbody's API via soap. Requires PHP &gt;= 5.3 with SOAP extension.

Install with composer or clone the repository. Include src/MB\_API.php or include vendor/autoload.php if using composer.

Update the MB\_API.php file with your Mindbody API source credentials or include them as a parameter to the MB\_API constructor

```
$mb = new \DevinCrossman\Mindbody\MB_API(array(
	"SourceName"=>'REPLACE_WITH_YOUR_SOURCENAME',
	"Password"=>'REPLACE_WITH_YOUR_PASSWORD',
	"SiteIDs"=>array('REPLACE_WITH_YOUR_SITE_ID')
));

// CheckoutShoppingCart

$checkoutShoppingCartRequest = $mb->CheckoutShoppingCart(array(
	'Test'=>'true',
	'ClientID'=>1234,
	'CartItems'=>array(
		'CartItem'=>array(
			'Quantity'=>1,
			'Item' => new SoapVar(
				array('ID'=>'1357'),
				SOAP_ENC_ARRAY,
				'Service',
				'http://clients.mindbodyonline.com/api/0_5'
			),
			'DiscountAmount' => 0
		)
	),
	'Payments' => array(
		'PaymentInfo' => new SoapVar(
			array(
				'CreditCardNumber'=>'4111111111111111',
				'ExpYear'=>'2015',
				'ExpMonth'=>'06',
				'Amount'=>'130',
				'BillingAddress'=>'123 Happy Ln',
				'BillingPostalCode'=>'93405'
			),
			SOAP_ENC_ARRAY,
			'CreditCardInfo',
			'http://clients.mindbodyonline.com/api/0_5'
		)
	)
));

// GetServices

$options = array(
	'LocationID'=>1,
	'HideRelatedPrograms'=>true
);
$servicesData = $mb->GetServices($options);

// FunctionData

$options = array(
	'FunctionName'=>'my_function',
	'FunctionParams'=>array(
		array(
			'ParamName'=>'@startDate',
			'ParamValue'=>'2014-05-01',
			'ParamDataType'=>'datetime'
		),
		array(
			'ParamName'=>'@endDate',
			'ParamValue'=>'2014-05-30',
			'ParamDataType'=>'datetime'
		)
	)
);
$data = $mb->FunctionDataXml($options);

```

See the examples folder for other examples Read MINDBODY's [API Documentation](https://developers.mindbodyonline.com) for more parameters.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.9% 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 ~3 days

Total

2

Last Release

4151d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/451831af8af1b62ee5683eb903156bce4ed10ab5c0020810aa73efbf4c43b82e?d=identicon)[devincrossman](/maintainers/devincrossman)

---

Top Contributors

[![devincrossman](https://avatars.githubusercontent.com/u/1829011?v=4)](https://github.com/devincrossman "devincrossman (34 commits)")[![drfraker](https://avatars.githubusercontent.com/u/1279323?v=4)](https://github.com/drfraker "drfraker (2 commits)")[![MikeiLL](https://avatars.githubusercontent.com/u/6392263?v=4)](https://github.com/MikeiLL "MikeiLL (1 commits)")

### Embed Badge

![Health badge](/badges/devincrossman-mindbody-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/devincrossman-mindbody-php-api/health.svg)](https://phpackages.com/packages/devincrossman-mindbody-php-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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