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

ActiveLibrary[API Development](/categories/api)

offspring/mindbody-php-api
==========================

A PHP wrapper for the MINDBODY Online API

2.1(6y ago)029.1k↓21.3%MITPHPPHP &gt;=5.3.0

Since Jan 2Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 87.2% 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 ~559 days

Total

4

Last Release

2477d ago

Major Versions

1.6.1 → 2.02019-08-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/238abd30949663be2fade0c342583cd520f4d6a22fcf1e114d74659f210582d7?d=identicon)[boyfigure](/maintainers/boyfigure)

---

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)")[![tonyoffs](https://avatars.githubusercontent.com/u/47514640?v=4)](https://github.com/tonyoffs "tonyoffs (2 commits)")[![MikeiLL](https://avatars.githubusercontent.com/u/6392263?v=4)](https://github.com/MikeiLL "MikeiLL (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/offspring-mindbody-php-api/health.svg)](https://phpackages.com/packages/offspring-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)
