<commit_before>[![Build Status](https://secure.travis-ci.org/gimler/guzzle-description-loader.png?branch=master)](http://travis-ci.org/gimler/guzzle-description-loader)
[![Dependency Status](https://www.versioneye.com/user/projects/55f17b93d4d204001e000053/badge.png)](https://www.versioneye.com/user/projects/55f17b93d4d204001e000053)

# Guzzle Service Description Loader

A stand-alone Service Description loader for Guzzle 5.x.

## Installation

If you are using Composer, and you should, just reference the plugin in your composer.json file:

``` sh
composer require "gimler/guzzle-description-loader"
```

## Supported File Formats

* Yaml
* Php
* Json

## Usage

``` php
$configDirectories = array(FIXTURES_PATH);
$this->locator = new FileLocator($configDirectories);
$this->jsonLoader = new JsonLoader($this->locator);

$description = $this->jsonLoader->load($this->locator->locate('description.json'));
```
<commit_msg>cleanup readme<commit_after>[![Build Status](https://secure.travis-ci.org/gimler/guzzle-description-loader.png?branch=master)](http://travis-ci.org/gimler/guzzle-description-loader)
[![Dependency Status](https://www.versioneye.com/user/projects/55f17b93d4d204001e000053/badge.png)](https://www.versioneye.com/user/projects/55f17b93d4d204001e000053)

# Guzzle Service Description Loader

A stand-alone Service Description loader for Guzzle 5.x.

## Installation

If you are using Composer, and you should, just run the following command:

``` sh
composer require "gimler/guzzle-description-loader"
```

## Supported File Formats

* Yaml
* Php
* Json

## Usage

``` php
$configDirectories = array(FIXTURES_PATH);
$this->locator = new FileLocator($configDirectories);

$this->jsonLoader = new JsonLoader($this->locator);

$description = $this->jsonLoader->load($this->locator->locate('description.json'));
```

{'fraction_non_alphanumeric': 0.1499454743729553, 'fraction_numerical': 0.04252998909487459, 'mean_word_length': 6.1400778210116735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, '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': '1233679', 'n_tokens_mistral': 685, 'n_tokens_neox': 608, 'n_words': 108}