<commit_before># MultiSafepay API Client

[![Build Status](https://travis-ci.org/nielstholenaar/multisafepay-client.svg?branch=master)](https://travis-ci.org/nielstholenaar/multisafepay-client) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nielstholenaar/multisafepay-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nielstholenaar/multisafepay-client/?branch=master)

API Client for the MultiSafepay API.

For more information about the MultiSafepay API see: https://www.multisafepay.com/documentation/doc/API-Reference/

## Requirements

The following versions of PHP are supported.

* PHP 5.6
* PHP 7.0

## Installation

You can use `composer require` to add the client to your `composer.json` file.

```
$ composer require ntholenaar/multisafepay-client
```

## Usage

### Client setup.

```php
    $client = new Client();

    $client->setApiKey('API-KEY');
```

### Get all gateways

```php
    $response = $client->environment('test')->api('gateways')->all();
    
    var_dump($response);
```

### Get issuers for an particular gateway.
<commit_msg>Added information about HTTPlug dependency (Fixes: https://github.com/nielstholenaar/laravel-multisafepay-client/issues/1)<commit_after># MultiSafepay API Client

[![Build Status](https://travis-ci.org/nielstholenaar/multisafepay-client.svg?branch=master)](https://travis-ci.org/nielstholenaar/multisafepay-client) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nielstholenaar/multisafepay-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nielstholenaar/multisafepay-client/?branch=master)

API Client for the MultiSafepay API.

For more information about the MultiSafepay API see: https://www.multisafepay.com/documentation/doc/API-Reference/

## Requirements

The following versions of PHP are supported.

* PHP 5.6
* PHP 7.0
* HTTPlug compatible HTTP Library. (See: http://docs.php-http.org/en/latest/httplug/users.html)

## Installation

You can use `composer require` to add the client to your `composer.json` file.

```
$ composer require ntholenaar/multisafepay-client
```

## Usage

### Client setup.

```php
    $client = new Client();

    $client->setApiKey('API-KEY');
```

### Get all gateways

```php
    $response = $client->environment('test')->api('gateways')->all();
    
    var_dump($response);
```

### Get issuers for an particular gateway.

{'fraction_non_alphanumeric': 0.15194642109669318, 'fraction_numerical': 0.0037672666387609877, 'mean_word_length': 4.886699507389163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6374774', 'n_tokens_mistral': 864, 'n_tokens_neox': 805, 'n_words': 160}