Download the PHP package owainjones74/puregym-api-wrapper without Composer

On this page you can find all versions of the php package owainjones74/puregym-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package puregym-api-wrapper

PureGym PHP API Wrapper

This is a PHP wrapper for the PureGym Mobile API. This API is not public facing and is subject to change at any time without notice by the PureGym devs.

Massive credit to 2t6h/puregym-attendance for their work in reverse engineering the API. This library is based on their work.

Disclaimer: This library is not affiliated with PureGym in any way. Use at your own risk.

Packagist Version Total Downloads

https://packagist.org/packages/owainjones74/puregym-api-wrapper

Installation

  1. Install the package with composer composer require owainjones74/puregym-api-wrapper
  2. Require the composer autoloader require 'vendor/autoload.php'; if required.
  3. Create a new instance of the PureGymClient with your email and pin $client = new PureGymClient('[email protected]', '12345678');

Tests

  1. Install the dev dependencies with composer install --dev
  2. Create a .env file in the root of the project with the following contents:

  3. Run the tests with composer test

Usage

Documentation

Owainjones74\Puregym\PureGymClient

The core client for interacting with the PureGym API.

Example

Methods

->member(): Owainjones74\Puregym\Member

Returns the member linked to the email and pin provided when creating the client.

->allGyms(): array

Returns an array of all gyms available to the member.

->gym($id): Owainjones74\Puregym\Gym

Returns a gym object for the gym with the given id.

Owainjones74\Puregym\Member

A member object representing the member linked to the email and pin provided when creating the client.

Example

Methods

->activity(): Owainjones74\Puregym\Activity

Returns an activity object for the member. This is the recent activity for this member.

->homeGym(): Owainjones74\Puregym\Gym

Returns a gym object for the members home gym.

Owainjones74\Puregym\Gym

A gym object representing a gym.

Example

Methods

->attendance(): Owainjones74\Puregym\Attendance

Returns an attendance object for the gym. This is the current attendance for this gym, consisting of the number of people in the gym and the capacity of the gym.

Owainjones74\Puregym\Activity

An activity object representing the recent activity for a member.

Example

Owainjones74\Puregym\Attendance

An attendance object representing the current attendance for a gym. Mainly the stats for the current amount of visitors and the capacity of the gym.

Example


All versions of puregym-api-wrapper with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package owainjones74/puregym-api-wrapper contains the following files

Loading the files please wait ....