<commit_before># saxulum-http-client-adapter-joomla

[![Build Status](https://api.travis-ci.org/saxulum/saxulum-http-client-adapter-joomla.png?branch=master)](https://travis-ci.org/saxulum/saxulum-http-client-adapter-joomla)
[![Total Downloads](https://poser.pugx.org/saxulum/saxulum-http-client-adapter-joomla/downloads.png)](https://packagist.org/packages/saxulum/saxulum-http-client-adapter-joomla)
[![Latest Stable Version](https://poser.pugx.org/saxulum/saxulum-http-client-adapter-joomla/v/stable.png)](https://packagist.org/packages/saxulum/saxulum-http-client-adapter-joomla)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/saxulum/saxulum-http-client-adapter-joomla/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/saxulum/saxulum-http-client-adapter-joomla/?branch=master)

## Features

 * Provides a http client interface adapter for [joomla][1]

## Requirements

 * PHP 5.3+
 * Joomla Http ~1.1

## Installation

Through [Composer](http://getcomposer.org) as [saxulum/saxulum-http-client-adapter-joomla][2].

## Usage

``` {.php}
use Saxulum\HttpClient\Joomla\HttpClient;
use Saxulum\HttpClient\Request;

$httpClient = new HttpClient();
$response = $httpClient->request(new Request(
    '1.1',
    Request::METHOD_GET,
    'http://en.wikipedia.org',
    array(
        'Connection' => 'close',
    )
));
```

You can inject your own joomla browser instance while creating the http client instance.

``` {.php}
use Joomla\Http\Http;
use Joomla\Http\Transport\Stream as StreamTransport;
use Saxulum\HttpClient\Joomla\HttpClient;


$options = array();
$transport = new StreamTransport($options);
$http = new Http($options, $transport);
$httpClient = new HttpClient($http);
```

[1]: https://packagist.org/packages/joomla/http
[2]: https://packagist.org/packages/saxulum/saxulum-http-client-adapter-joomla<commit_msg>enhance readability of the documentation<commit_after># saxulum-http-client-adapter-joomla

[![Build Status](https://api.travis-ci.org/saxulum/saxulum-http-client-adapter-joomla.png?branch=master)](https://travis-ci.org/saxulum/saxulum-http-client-adapter-joomla)
[![Total Downloads](https://poser.pugx.org/saxulum/saxulum-http-client-adapter-joomla/downloads.png)](https://packagist.org/packages/saxulum/saxulum-http-client-adapter-joomla)
[![Latest Stable Version](https://poser.pugx.org/saxulum/saxulum-http-client-adapter-joomla/v/stable.png)](https://packagist.org/packages/saxulum/saxulum-http-client-adapter-joomla)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/saxulum/saxulum-http-client-adapter-joomla/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/saxulum/saxulum-http-client-adapter-joomla/?branch=master)

## Features

 * Provides a http client interface adapter for [joomla][1]

## Requirements

 * PHP 5.3+
 * Joomla Http ~1.1

## Installation

Through [Composer](http://getcomposer.org) as [saxulum/saxulum-http-client-adapter-joomla][2].

## Usage

``` {.php}
use Saxulum\HttpClient\Joomla\HttpClient;
use Saxulum\HttpClient\Request;

$httpClient = new HttpClient();
$response = $httpClient->request(new Request(
    '1.1',
    Request::METHOD_GET,
    'http://en.wikipedia.org',
    array(
        'Connection' => 'close',
    )
));
```

You can inject your own joomla browser instance while creating the http client instance.

``` {.php}
use Joomla\Http\Http;
use Joomla\Http\Transport\Stream as StreamTransport;
use Saxulum\HttpClient\Joomla\HttpClient;

$options = array();
$transport = new StreamTransport($options);
$http = new Http($options, $transport);

$httpClient = new HttpClient($http);
```

[1]: https://packagist.org/packages/joomla/http
[2]: https://packagist.org/packages/saxulum/saxulum-http-client-adapter-joomla
{'fraction_non_alphanumeric': 0.16840976133011532, 'fraction_numerical': 0.0053633681952266025, 'mean_word_length': 5.14497528830313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '435312', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1345, 'n_words': 181}