Download the PHP package mywhistlebox/mwb-sdk without Composer

On this page you can find all versions of the php package mywhistlebox/mwb-sdk. 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 mwb-sdk

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

To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:

Required minimum php version

Steps to install the SDK Package

Getting started

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.

Client Methods

Once you create a client instance, you can use it to call MyWhistleBox methods. The list of methods is described at here.

Method Response

All methods return a json object in the following general format.

in addition, if a method results in an error, the response will look like:

Simple Ping Test

To make sure you are authenicating properly, we recommend using the Ping method as a test. A simple Ping test may look like so:

Examples

List Boxes

Send an upload request

Reporting issues

Report any feedback or problems with this version by opening an issue on Github.


All versions of mwb-sdk with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.9
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 mywhistlebox/mwb-sdk contains the following files

Loading the files please wait ....