PHPackages                             vitorbritto/gympass-sdk-php - 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. vitorbritto/gympass-sdk-php

ActiveLibrary[API Development](/categories/api)

vitorbritto/gympass-sdk-php
===========================

An easy way to Integrate Gympass Booking API.

41PHP

Since Apr 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/vitorbritto/gympass-sdk-php)[ Packagist](https://packagist.org/packages/vitorbritto/gympass-sdk-php)[ RSS](/packages/vitorbritto-gympass-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Getting started
===============

[](#getting-started)

An easy way to Integrate Gympass Booking API.

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

[](#installation)

The Gympass PHP SDK can be installed with Composer. Run this command:

```
composer require vitorbritto/gympass-sdk-php

```

Usage
-----

[](#usage)

### Authentication

[](#authentication)

In order to setup authentication and initialization of the API client, you need the following information.

ParameterDescriptionoAuthAccessTokenOAuth 2.0 Access TokenAPI client can be initialized as following.

```
$oAuthAccessToken = 'oAuthAccessToken'; // OAuth 2.0 Access Token

$client = new GympassAPILib\GympassAPIClient($oAuthAccessToken);
```

Class Reference
===============

[](#class-reference)

List of Controllers
------------------------------------------------------

[](#list-of-controllers)

- [ClassesController](#classes)
- [SlotsController](#slots)
- [BookingsController](#bookings)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".ClassesController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) ClassesController
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-classescontroller)

### Get singleton instance

[](#get-singleton-instance)

The singleton instance of the `ClassesController` class can be accessed from the API Client.

```
$classes = $client->getClasses();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".ClassesController.create")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) create

[](#-create)

> Creates a list of classes on a given gym.

```
function create(
        $gymId,
        $payload)
```

#### Parameters

[](#parameters)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.payload`Required`Payload for creating classes.#### Example Usage

[](#example-usage)

```
$gymId = '1';
$payload = new Classes();

$result = $classes->create($gymId, $payload);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".ClassesController.mlist")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) mlist

[](#-mlist)

> Get a list of classes on a given gym.

```
function mlist($gymId)
```

#### Parameters

[](#parameters-1)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.#### Example Usage

[](#example-usage-1)

```
$gymId = '1';

$result = $classes->mlist($gymId);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".ClassesController.getView")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getView

[](#-getview)

> TODO: Add a method description

```
function getView(
        $gymId,
        $classId)
```

#### Parameters

[](#parameters-2)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.#### Example Usage

[](#example-usage-2)

```
$gymId = '1';
$classId = '1';

$result = $classes->getView($gymId, $classId);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".ClassesController.update")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) update

[](#-update)

> TODO: Add a method description

```
function update(
        $gymId,
        $classId,
        $payload)
```

#### Parameters

[](#parameters-3)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.payload`Required`Payload for updating a class.#### Example Usage

[](#example-usage-3)

```
$gymId = '1';
$classId = '1';
$payload = new MClass();

$result = $classes->update($gymId, $classId, $payload);
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".SlotsController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) SlotsController
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-slotscontroller)

### Get singleton instance

[](#get-singleton-instance-1)

The singleton instance of the `SlotsController` class can be accessed from the API Client.

```
$slots = $client->getSlots();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".SlotsController.create")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) create

[](#-create-1)

> TODO: Add a method description

```
function create(
        $gymId,
        $classId,
        $payload)
```

#### Parameters

[](#parameters-4)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.payload`Required`Payload for creating a class#### Example Usage

[](#example-usage-4)

```
$gymId = '1';
$classId = '1';
$payload = new Slot();

$result = $slots->create($gymId, $classId, $payload);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".SlotsController.getView")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getView

[](#-getview-1)

> TODO: Add a method description

```
function getView(
        $gymId,
        $classId,
        $slotId)
```

#### Parameters

[](#parameters-5)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.slotId`Required` `DefaultValue`The identifier of the Slot at Gympass. Returned when create a Slot.#### Example Usage

[](#example-usage-5)

```
$gymId = '1';
$classId = '1';
$slotId = '1';

$result = $slots->getView($gymId, $classId, $slotId);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".SlotsController.mlist")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) mlist

[](#-mlist-1)

> TODO: Add a method description

```
function mlist(
        $gymId,
        $classId,
        $from,
        $to)
```

#### Parameters

[](#parameters-6)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.from`Required`timezoned date/time to start find slots. It should be entered based on the location of the gym.to`Required`timezoned date/time to start find slots. It should be entered based on the location of the gym.#### Example Usage

[](#example-usage-6)

```
$gymId = '1';
$classId = '1';
$from = 'From';
$to = 'To';

$result = $slots->mlist($gymId, $classId, $from, $to);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".SlotsController.delete")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) delete

[](#-delete)

> TODO: Add a method description

```
function delete(
        $gymId,
        $classId,
        $slotId)
```

#### Parameters

[](#parameters-7)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.slotId`Required` `DefaultValue`The identifier of the Slot at Gympass. Returned when create a Slot.#### Example Usage

[](#example-usage-7)

```
$gymId = '1';
$classId = '1';
$slotId = '1';

$slots->delete($gymId, $classId, $slotId);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".SlotsController.createPatch")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createPatch

[](#-createpatch)

> TODO: Add a method description

```
function createPatch(
        $gymId,
        $classId,
        $slotId,
        $payload)
```

#### Parameters

[](#parameters-8)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.classId`Required` `DefaultValue`The identifier of the class at Gympass. Returned when create a Class.slotId`Required` `DefaultValue`The identifier of the Slot at Gympass. Returned when create a Slot.payload`Required`Payload for updating slot limits.#### Example Usage

[](#example-usage-8)

```
$gymId = '1';
$classId = '1';
$slotId = '1';
$payload = new SlotLimits();

$result = $slots->createPatch($gymId, $classId, $slotId, $payload);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".SlotsController.update")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) update

[](#-update-1)

> TODO: Add a method description

```
function update($payload)
```

#### Parameters

[](#parameters-9)

ParameterTagsDescriptionpayload`Required`Payload for creating a slot.#### Example Usage

[](#example-usage-9)

```
$payload = new Slot();

$result = $slots->update($payload);
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".BookingsController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) BookingsController
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-bookingscontroller)

### Get singleton instance

[](#get-singleton-instance-2)

The singleton instance of the `BookingsController` class can be accessed from the API Client.

```
$bookings = $client->getBookings();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".BookingsController.update")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) update

[](#-update-2)

> TODO: Add a method description

```
function update(
        $gymId,
        $bookingNumber,
        $payload)
```

#### Parameters

[](#parameters-10)

ParameterTagsDescriptiongymId`Required` `DefaultValue`The identifier of the gym at Gympass. Provided by Gympass.bookingNumber`Required` `DefaultValue`The booking identifier at Gympass. Returned when create a Boooking.payload`Required`Payload for updating a booking.#### Example Usage

[](#example-usage-10)

```
$gymId = '1';
$bookingNumber = '1';
$payload = new Booking();

$result = $bookings->update($gymId, $bookingNumber, $payload);
```

[Back to Summary](#summary)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d99f2fa908ea15cf540892a66bd56bac93292efcae24746cfb2c5c131dd26e5c?d=identicon)[vitorbritto](/maintainers/vitorbritto)

---

Tags

gympassphpsdk

### Embed Badge

![Health badge](/badges/vitorbritto-gympass-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/vitorbritto-gympass-sdk-php/health.svg)](https://phpackages.com/packages/vitorbritto-gympass-sdk-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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