PHPackages                             mywhistlebox/mwb-sdk - 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. mywhistlebox/mwb-sdk

ActiveLibrary[API Development](/categories/api)

mywhistlebox/mwb-sdk
====================

A PHP SDK to integrate with the MyWhistleBox platform

V1.1.0(1y ago)01MITPHP

Since Dec 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mywhistlebox/mwb-php)[ Packagist](https://packagist.org/packages/mywhistlebox/mwb-sdk)[ Docs](http://github.com/mywhistlebox/mwb-php)[ RSS](/packages/mywhistlebox-mwb-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

mwb-php
=======

[](#mwb-php)

The MyWhistleBox PHP SDK makes it simpler to integrate your PHP applications using the MyWhistleBox REST API. Using the SDK, you will be able to upload files to you box or others, send requests and much more.

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

[](#installation)

To install the SDK, you will need to be using [Composer](http://getcomposer.org/)in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:

```
curl -sS https://getcomposer.org/installer | php
```

Required minimum php version
----------------------------

[](#required-minimum-php-version)

- minimum php version 7.4

### Steps to install the SDK Package

[](#steps-to-install-the-sdk-package)

- To install the **stable release**, run the following command in your project directory:

    ```
      $ composer require mywhistlebox/mwb-php

    ```

Getting started
---------------

[](#getting-started)

### Authentication

[](#authentication)

To make the API requests, you need to create a `MwbClient` and provide it with an apikey which can be obtained from your MyWhistleBox Account Settings (API Key tab). Only Enterprise plans will have access to the required keys.

We recommend that you store your credentials in the `MWB_AUTH_KEY` environment variable, so as to avoid the possibility of accidentally committing them to source control. If you do this, you can initialise the client with no arguments and it will automatically fetch them from the environment variable.

```
