<commit_before>PHP API Client for api.vultr.com
================================

**Consider this to be a beta release that will become final in the next few
days! Not all calls have been properly tested!**

## Install using composer

Open a shell, `cd` to your poject and type:

```sh
composer require malc0mn/vultr-api-client dev-master
```

or edit composer.json and add:

```json
{
    "require": {
        "malc0mn/vultr-api-client": "dev-master"
    }
}
```

If you want to use the `GuzzleHttpAdapter`, you will need to add [Guzzle 5](https://github.com/guzzle/guzzle/tree/5.3)
[Guzzle 6](https://github.com/guzzle/guzzle).

## Usage examples

```php
require 'vendor/autoload.php';

// Using Guzzle 5 or 6...
$client = new VultrClient(
    new GuzzleHttpAdapter('your-api-key')
);

$result = $client->metaData()->getAccountInfo();

var_export($result);
```

```php
require 'vendor/autoload.php';

// Using regular CURL, courtesy of 'usefulz'
$client = new VultrClient(
    new CurlAdapter('your-api-key')
);

$result = $client->metaData()->getAccountInfo();

var_export($result);
```

## Vultr API documentation

The full API documentation can be found on https://www.vultr.com/api and has
been partly added to the PHP DocBlocks companioning the PHP functions that<commit_msg>Updated readme.<commit_after>PHP API Client for api.vultr.com
================================

**Consider this to be a beta release that will become final in the next few
days! Not all calls have been properly tested!**

## Install using composer

Open a shell, `cd` to your poject and type:

```sh
composer require malc0mn/vultr-api-client dev-master
```

or edit composer.json and add:

```json
{
    "require": {
        "malc0mn/vultr-api-client": "dev-master"
    }
}
```

If you want to use the `GuzzleHttpAdapter`, you will need to add [Guzzle 5](https://github.com/guzzle/guzzle/tree/5.3)
or [Guzzle 6](https://github.com/guzzle/guzzle).

## Usage examples

###### Guzzle

```php
require 'vendor/autoload.php';

// Using Guzzle 5 or 6...
$client = new VultrClient(
    new GuzzleHttpAdapter('your-api-key')
);

$result = $client->metaData()->getAccountInfo();

var_export($result);
```

###### CURL

```php
require 'vendor/autoload.php';

// Using regular CURL, courtesy of 'usefulz'
$client = new VultrClient(
    new CurlAdapter('your-api-key')
);

$result = $client->metaData()->getAccountInfo();

var_export($result);
```

## Vultr API documentation

The full API documentation can be found on https://www.vultr.com/api and has
been partly added to the PHP DocBlocks companioning the PHP functions that
{'fraction_non_alphanumeric': 0.16365036580670003, 'fraction_numerical': 0.0061609549480169425, 'mean_word_length': 4.280487804878049, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '436133', 'n_tokens_mistral': 897, 'n_tokens_neox': 840, 'n_words': 265}